How JS Runs
Scope Chain
Understanding this
Closures
Interview Lab
Guides
Buy me a coffee
EN
Scope Chain Visualizer
Select preset example or edit/paste custom code
Multi-Level Scope Lookup
Variable Shadowing
Lexical Scope vs Call Stack
ES6 Block Scope Isolation
Step 0 of 0
←
→
Step
Space
Run
Press → (Step) or Space (Run)
◀
▶ Run Auto
▶
Phase 1: Compilation
(Hoisting & Memory Setup)
➔
Phase 2: Execution
(Line-by-line Evaluation)
Execution Step Breakdown
Press "→" / click "▶" to step line-by-line, or press "Space" / click "▶ Run" for auto-play.
Written guides
How the JavaScript Scope Chain Works