Event Loop Visualizer

Visualize JS call stack, microtasks queue, macrotasks queue, and Web APIs in real time.

Loading Event Loop Visualizer...

JS Architecture

Understanding JavaScript Asynchronous Execution & Event Loop Queues

JavaScript is single-threaded. The event loop coordinates the Call Stack, Microtask Queue (Promises), and Macrotask Queue (setTimeout/events) to enable non-blocking asynchronous execution.

  1. 01

    Write or Select JS Code

    Write custom async JavaScript code or pick preset scenarios (Promises, setTimeouts, async/await).

  2. 02

    Step-by-Step Execution

    Click Step or Play to watch stack frames get pushed/popped and queues drained in real-time animations.

Frequently Asked Questions

Answers about this tool.

What is the difference between Microtasks and Macrotasks?

Microtasks (Promise callbacks, queueMicrotask) run immediately after the current Call Stack empties before the browser paints. Macrotasks (setTimeout, setInterval, I/O) run on subsequent event loop ticks.

Related tools

🍪 We value your privacy

We use strictly necessary cookies to run this site (login, billing). With your consent, we'd also like to use cookies to serve personalized ads and analyze our traffic. Declining only turns off those optional cookies. Read more in our Privacy Policy.