Module
JavaScript
Animated labs for the parts of JavaScript that are hard to picture: the call stack, queues, scope and the objects behind every value.
Each lab runs your code in a small simulated runtime in the browser and records every step, so you can play it forward and back.
How to use it
- 1Pick a lab from the list.
- 2Choose an example from the dropdown, or write your own code.
- 3Press Run, then play or step through to watch what happens in order.
Labs
- 01Event loopCall stack, Web APIs, microtasks and macrotasks, step by step.
- 02ClosuresFunctions that remember the scope they were made in.soon(coming soon)
- 03Scope & hoistingvar, let, const and the temporal dead zone.soon(coming soon)
- 04The this keywordHow the call site decides what this points to.soon(coming soon)
- 05Prototypes & inheritanceThe prototype chain behind every object and class.soon(coming soon)
- 06PromisesPending, fulfilled, rejected, and how chains settle.soon(coming soon)
- 07async / awaitPromise code that reads top to bottom.soon(coming soon)
- 08Generators & iteratorsFunctions that pause, resume and yield values.soon(coming soon)
- 09Modulesimport, export and how the module graph loads.soon(coming soon)
- 10Memory & garbage collectionReachability, leaks and how memory is freed.soon(coming soon)