JavaScript Visualizer 9000
Choose an Example
function logA() { console.log('A') }
function logB() { console.log('B') }
function logC() { console.log('C') }
function logD() { console.log('D') }
// Click the "RUN" button to learn how this works!
logA();
setTimeout(logB, 0);
Promise.resolve().then(logC);
logD();
// NOTE:
// This is an interactive vizualization. So try
// editing this code and see what happens. You
// can also try playing with some of the examples
// from the dropdown!
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Built by Andrew Dillon. Inspired by Loupe.

Task Queue
Microtask Queue
Call Stack
Event Loop

Evaluate Script

Run a Task

Run all Microtasks

Rerender