Geeks2Smart
Courses, in learning order All courses
<html>
{ }
@media
aria-
.js
<?php
wp_
Topics
New to coding?
HTML Complete Course
Build semantic, accessible web pages from your first file to native dialogs, safe embeds and fast loading.
Fifteen questions covering the whole JavaScript Complete Course.
15 questions. Pass mark 70%.
const scores = [10, 20]; scores.push(30); console.log(scores.length);
3
TypeError
scores
2
typeof null
"object"
"null"
"undefined"
true
Select all that apply.
null == undefined
0 == ""
"5" === 5
NaN === NaN
0.1 + 0.2 === 0.3
false
const letters = ["a", "b"]; for (const i in letters) { console.log(typeof i); }
"string"
"number"
"a"
"b"
this
return
function makeCounter() { let count = 0; return () => ++count; } const a = makeCounter(); const b = makeCounter(); a(); a(); console.log(a(), b());
3 1
3 3
1 1
2 1
result
const result = [1, 2, 3, 4] .filter((n) => n % 2 === 0) .map((n) => n * 10);
[20, 40]
[10, 20, 30, 40]
[false, true, false, true]
60
const volume = 0; console.log(volume || 50, volume ?? 50);
50 0
0 0
50 50
0 50
paragraph.textContent = name
paragraph.innerHTML = name
maxlength
console.log("A"); setTimeout(() => console.log("B"), 0); Promise.resolve().then(() => console.log("C")); console.log("D");
getUser()
getCourses()
const [user, courses] = await Promise.all([getUser(), getCourses()]);
const user = await getUser(); const courses = await getCourses();
const [user, courses] = [await getUser(), await getCourses()];
fetch()
ok
catch
const original = { tags: ["js"] }; const copy = { ...original }; copy.tags.push("css"); console.log(original.tags.length);
1
Promise.allSettled()
Promise.all()
Promise.race()
Promise.any()
Review these before trying again:
Turn on JavaScript to take this quiz. Your answers are checked on our server.