JavaScript basics, from typeof to closures
Sixteen topics covering a working knowledge of JavaScript as a language: values, types and the typeof operator, var, let, const and scope, type coercion and the two forms of equality, truthiness and falsy values, functions, hoisting, arrow functions and this, the prototype chain and Object.create, classes and how they relate to prototypes, this on methods and in event handlers, closures and the state they capture, the event loop and what makes code asynchronous, promises and async and await, destructuring, spread and rest, modules, iterators and generators, and structuredClone with immutability and the cost of copying.
Technology
- Values, types and the typeof operator
- var, let, const and scope
- Type coercion, and why the two forms of equality differ