medium
1/6
Step Explanation
Understand what is happening first
Execution Visualizer
Watch memory, stack, queues, and output
Execution Visualizer
live
user1 contains address as a nested object. Both top-level and nested object exist in memory.
Call Stack
1 frame
TOP ↑
▲global()
frame 0↓ BOTTOM
Global Context
Memory
2 variablesHeap Memory
user1obj→ refnew
"Object #1"user1.addressobj→ refnew
"Object #2 { city: "Pune" }"Console Output
awaiting output...
varfnobjarrclosure
Code Preview
Active line 1
Code
line 1Tap Expand to view full code
1/6
← → Space R