Languages & Runtimes
JavaScript & TypeScript
JavaScript as it really works: types and coercion, scope and closures, this, prototypes, the event loop, promises and async/await, modules, how V8 parses and optimises your code — and TypeScript's type system.
4 modules 12 lessons ~1 h of reading
Start learning
0/12 completed
01
Core Language
5 lessons- 1JavaScript BasicsThe essentials of modern JavaScript — where it runs, let/const, primitives and objects, functions and arrow functions, arrays and their methods, destructuring, spread, optional chaining, and the gotchas.beginner2 min
- 2Types & CoercionHow JavaScript converts between types — ToPrimitive, ToNumber, ToString and ToBoolean, truthy and falsy values, == vs ===, the + operator, NaN, Object.is, and the infamous WAT examples explained.intermediate3 min
- 3Scope, Closures & HoistingLexical scope and the scope chain, var vs let/const, hoisting and the temporal dead zone, closures and how they're implemented, the loop-closure bug, and practical uses like memoisation and private state.intermediate3 min
- 4The this KeywordHow JavaScript decides what this refers to — the four binding rules (default, implicit, explicit, new), arrow functions, call/apply/bind, lost-this bugs with callbacks, and this in classes.intermediate2 min
- 5Prototypes & ClassesJavaScript's prototype-based inheritance — the prototype chain, __proto__ vs prototype, constructor functions, Object.create, how ES6 classes desugar, private fields, static members, and mixins.intermediate3 min
02
Async
2 lessons- 6The Event LoopHow single-threaded JavaScript handles concurrency — the call stack, Web APIs, the task (macrotask) queue, the microtask queue, rendering, and Node.js event loop phases — with an interactive visualiser and output-ordering puzzles.intermediate3 min
- 7Promises & async/awaitFrom callbacks to promises to async/await — promise states, chaining, error handling, Promise.all/allSettled/race/any, running work in parallel vs sequence, cancellation with AbortController, and common mistakes.intermediate3 min
03
Runtime & Ecosystem
3 lessons- 8V8 Engine InternalsHow V8 runs JavaScript fast — parsing, the Ignition interpreter, Sparkplug, Maglev and TurboFan JITs, hidden classes (shapes), inline caches, deoptimisation, element kinds, and Orinoco garbage collection — plus how to write engine-friendly code.advanced4 min
- 9ModulesES modules vs CommonJS — import/export syntax, live bindings, static structure and tree shaking, dynamic import, top-level await, module resolution in Node and bundlers, package.json exports, and dual-package hazards.intermediate4 min
- 10Node.js InternalsHow Node.js works — V8 plus libuv, the non-blocking I/O model, the thread pool, event loop phases, streams and backpressure, buffers, worker threads, clustering, and diagnosing a blocked event loop.advanced5 min
04
TypeScript
2 lessons- 11TypeScript BasicsAdding static types to JavaScript — type annotations and inference, interfaces vs type aliases, unions and narrowing, functions, generics, classes, enums vs union literals, tsconfig, and how types are erased at runtime.intermediate2 min
- 12Advanced TypeScript TypesType-level programming — keyof and indexed access, typeof, mapped types, conditional types and infer, template literal types, utility types (Partial, Pick, Omit, ReturnType…), variance, branded types, and satisfies.advanced2 min