Call stack
The call stack shows the currently active execution contexts.
- The global frame is the outer script-level context.
- Function frames appear when a function is called.
- A frame disappears when that function returns.
JavaScript memory model
Step through small JavaScript examples and watch primitive values, object references, stack frames, and heap objects change.
| Area | Name | Kind | Holds |
|---|
Learning materials
Use these notes as a companion to the scenarios. The visuals are conceptual: they explain observable JavaScript behavior, not exact V8 memory addresses.
The call stack shows the currently active execution contexts.
A frame is a conceptual container for local bindings.
The heap represents objects, arrays, functions, and retained closure environments.