JS Execution Context - Hoisting, Closures, this | IconVault
Animated walkthroughs of hoisting, closures and this-binding. Watch the context stack, creation vs execution phases and variable environments. Free.
JS Execution Context
Hoisting, closures and this, animated step by step
Code
console.log(a); // undefined, not an errorconsole.log(greet); // the whole function// console.log(b); // ReferenceError: TDZvar a = 10;let b = 20;function greet() {return "hello";}
Why var and function declarations are usable before their line runs, but let and const are not.
Execution context stack
Global EC
creation phase: allocating memory
The top box is the currently running context.
Variable environments
global
5 of 5 free walkthroughs left.
About this tool
IconVault's JS Execution Context visualizer turns JavaScript's invisible machinery into a step-by-step animation. Three lessons cover hoisting and the temporal dead zone, closures that keep outer scopes alive, and this-binding across method calls, detached functions and arrow callbacks.
Each step highlights the running code line, shows the execution context stack with creation and execution phases, and renders every variable environment so you can see bindings change. Everything is free and runs fully in your browser: perfect for interviews, teaching or finally understanding closures.
Frequently asked questions
Popular searches
More tools
Algorithm Visualizer
Watch sorting and searching animate step by step
Alt Text Helper
Write better image alt text with live feedback
ARIA Reference
Searchable ARIA roles and attributes guide
Array Visualizer
Step through map, filter, reduce like a debugger
Coming soon
CLI
Coming soon
Figma plugin
Coming soon
VS Code extension
Coming soon
Chrome extension
Coming soon
AI icon generator
Coming soon
Team workspaces
Coming soon