JavaScript · Intermediate
Using it: picking the right tool and applying it correctly.
What is the JavaScript event loop responsible for?
What problem do Promises primarily solve compared to plain callbacks?
In a regular (non-arrow) function, what determines the value of `this`?
What do Array methods like `map`, `filter`, and `reduce` have in common?
What is 'hoisting' in JavaScript?
What is destructuring assignment used for?
What does the `...rest` parameter do in a function signature, e.g. `function f(a, ...rest) {}`?
What is the practical difference between `Array.prototype.forEach` and a `for...of` loop regarding `break`/`continue`?
What does `Object.freeze()` do to an object?
What is the purpose of default parameter values in a function declaration, e.g. `function f(x = 10) {}`?
What does `Array.prototype.find()` return when no element satisfies the predicate?
What practical advantage does a `Set` have over an `Array` for storing a collection of values?
What does optional chaining (`obj?.prop`) do?
What is the key difference between the nullish coalescing operator `??` and the logical OR `||`?
What does `Array.prototype.includes()` check for?
What does `Object.entries({a: 1, b: 2})` return?
What does calling an `async` function actually return, even if the function body never explicitly returns a Promise?
What is the (now largely superseded) module pattern using an Immediately Invoked Function Expression (IIFE) used for?
What does `Array.from({length: 3}, (_, i) => i * 2)` produce?
What is a tagged template literal, e.g. `` myTag`Hello ${name}` ``, used for?