JavaScript Quiz: functions, promises and modules
Arrow functions, closures, scope and hoisting, this, null and undefined, filter, promises, async and await, modules and destructuring: the notions that go beyond JavaScript basics.
Question preview
- Which ECMAScript version introduced let, const, arrow functions and classes?
- What does console.log(x) print when it is placed before the line var x = 5 in the same script?
- Inside an arrow function, what does this refer to?
… and 7 more questions to discover by playing.