Course
JavaScript Language Internals
How JavaScript really executes — event-loop scheduling, closures, prototypes, iteration protocols, and the specification behaviors that explain production bugs.
Reviews
Enrolled members can rate this course.
No reviews yet.
Execution Model
The event loop, task queues, microtasks, and rendering — how JavaScript actually schedules work.
- 01The Event Loop: Tasks and MicrotasksThe two-queue model behind JavaScript scheduling — why promise callbacks beat timers, and how to predict ordering before running the code.24mOpen
- 02Rendering, Frames, and Where Your Work Really RunsHow JavaScript interacts with browser rendering, why long tasks wreck input latency, and when to use rAF, idle callbacks, or workers.23mOpen
- 03Async Errors, Rejections, and the Await BoundaryWhere thrown errors go in asynchronous code, how unhandled rejections happen, and why promise composition needs deliberate error ownership.21mOpen
Language Mechanics
Execution contexts, closures, scope chains, `this`, and prototype inheritance as mechanisms rather than trivia.
- 01Execution Contexts, Environments, and ScopeWhat happens when JavaScript enters a function: bindings, environment records, hoisting, and why scope is lexical rather than dynamic.25mOpen
- 02Closures: Capture Semantics and Memory BehaviorClosures as live environment references — loop capture, accidental retention, and the practical difference between elegant encapsulation and leaks.24mOpen
- 03`this`, Property Lookup, and Prototype ChainsThe call-site rules for `this`, how prototype lookup differs from class copying, and where method extraction quietly breaks objects.26mOpen
Iteration and Spec Edge Cases
Iterables, generators, coercion, equality, and specification corners that bite experienced teams.
- 01Iterables, Iterators, and the Spread ContractThe two-object iteration protocol behind `for...of`, destructuring, and spread — plus how to implement it without inventing ad-hoc collection APIs.21mOpen
- 02Generators as Resumable FunctionsHow `yield` suspends execution state, how values flow both directions, and where generators beat callbacks or ad-hoc state machines.24mOpen
- 03Coercion, Equality, and the Spec Behaviors That BiteType conversion rules that matter in production: equality, addition, numeric conversion, object-to-primitive, and disciplined ways to avoid accidental behavior.26mOpen