Lab 4 All

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

  1. 1Pick a lab from the list.
  2. 2Choose an example from the dropdown, or write your own code.
  3. 3Press Run, then play or step through to watch what happens in order.

Labs

  1. 01Event loopCall stack, Web APIs, microtasks and macrotasks, step by step.
  2. 02ClosuresFunctions that remember the scope they were made in.soon(coming soon)
  3. 03Scope & hoistingvar, let, const and the temporal dead zone.soon(coming soon)
  4. 04The this keywordHow the call site decides what this points to.soon(coming soon)
  5. 05Prototypes & inheritanceThe prototype chain behind every object and class.soon(coming soon)
  6. 06PromisesPending, fulfilled, rejected, and how chains settle.soon(coming soon)
  7. 07async / awaitPromise code that reads top to bottom.soon(coming soon)
  8. 08Generators & iteratorsFunctions that pause, resume and yield values.soon(coming soon)
  9. 09Modulesimport, export and how the module graph loads.soon(coming soon)
  10. 10Memory & garbage collectionReachability, leaks and how memory is freed.soon(coming soon)