medium
1/6
Step Explanation
Understand what is happening first
Execution Visualizer
Watch memory, stack, queues, and output
Execution Visualizer
live
A single object is created in heap memory. user1 stores a reference to that object.
Call Stack
1 frame
TOP ↑
▲global()
frame 0↓ BOTTOM
Global Context
Memory
2 variablesStack Memory
user1varnew
"ref → Object #1"Heap Memory
Object #1obj→ refnew
"{ name: "Sandesh" }"Console Output
awaiting output...
varfnobjarrclosure
Code Preview
Active line 1
Code
line 1Tap Expand to view full code
1/6
← → Space R