JS Visualizer — JavaScript Event Loop & Runtime Tutorial
See Code. Understand Memory.
JS Visualizer is a free interactive JavaScript visualizer that simulates the JavaScript runtime in real time. Step through code line-by-line and watch the call stack, Web APIs, task queue, microtask queue, event loop, and a force-directed memory graph animate as your code executes.
Built for developers learning async/await, Promises, closures, generators, classes, and the event loop, JS Visualizer turns abstract runtime behavior into something you can watch and reason about.
Features
- Step-by-step JavaScript execution with breakpoints
- Live call stack and frame visualization
- Web APIs panel (timers, fetch, etc.) with progress tracking
- Task queue and microtask queue with proper draining order
- Animated event loop phase indicator
- Memory graph showing heap objects, closures, and references
- Twenty-plus built-in examples covering JS fundamentals through advanced patterns
- Light and dark themes
Topics Covered
Synchronous execution, call stack, Promises, microtasks, timers, event loop, async/await, advanced patterns, error handling, Web APIs, hoisting & TDZ, scope & closures, this binding, type coercion, Map & Set, classes, operators, destructuring, built-ins, generators, inheritance, metaprogramming, binary data.
This app requires JavaScript. Please enable JavaScript in your browser to use the interactive visualizer.