Coding quiz
Eight snippets where JavaScript does something you might not expect. Predict each one, then see why.
console.log("5" + 3);console.log("5" - 3);console.log(0.1 + 0.2 === 0.3);const name = "Ana";
name = "Ben";const a = [10, 20, 30];
console.log(a[a.length]);console.log(1 == "1");
console.log(1 === "1");let s = "";
for (let i = 0; i < 3; i++) {
s += i;
}
console.log(s);console.log(typeof null);Answer all 8 questions to see your score.
JavaScript basics
It finds out what you already know, starts from there, and adapts to every answer. Your first 14 days are free, no card needed.