JavaScript · Starter
The basics: what a thing is and what it's for.
What does `typeof null` return in JavaScript?
What is the key difference between `==` and `===` in JavaScript?
What is a closure in JavaScript?
What is the main difference between variables declared with `let` and `var`?
What does the expression `NaN === NaN` evaluate to?
What does `Array.isArray([])` return?
What is the purpose of `JSON.stringify()`?
What does the `+` operator do when used between a string and a number, e.g. `"5" + 3`?
What is the result of `typeof undefined`?
What does `Array.prototype.push()` do?
What is a template literal (backtick string) used for?
What does `Object.keys({a: 1, b: 2})` return?
What is the key difference between `null` and `undefined`?
What does the spread operator `...` do when used on an array, e.g. `[...arr]`?
What does `parseInt("42px")` return?
What is the purpose of the `const` keyword?
What does `[1, 2, 3].length` return?
What is the purpose of the ternary operator `condition ? a : b`?
What does `console.log(1 + "1")` print?
What does `Boolean(0)` evaluate to?