Code
Loading editor...
Tap Analyze to see visualization
Click Analyze to visualize
See step-by-step execution, variables, and output
Variables
Run code to see variables
Output
Console output will appear here
Click Analyze to visualize
See step-by-step execution, variables, and output
Run code to see variables
Console output will appear here
Demonstrate the execution context stack by nesting function calls three levels deep. Each call creates a new execution context pushed onto the call stack, and each return pops it. Inner functions access outer variables through the scope chain attached to their execution context.
Every function invocation creates an execution context with its own variable environment and scope chain. The call stack tracks which context is active, enabling JavaScript to resume the caller after the callee returns.
Updated Feb 2026