JavaScript Execution Visualizer
JavaScript is required to use this tool. Please enable JavaScript in your browser settings.
This is a free interactive tool that lets you paste any JavaScript code and step through its execution visually. You'll see:
- The call stack grow and shrink as functions are called and return
- The scope chain at every step, including global, function, and block scopes
- Variable hoisting for var, let, const, and function declarations
- The Temporal Dead Zone (TDZ) for let and const
- How closures capture their lexical scope
- Live console output as your code runs