medium
1/9
Step Explanation
Understand what is happening first
Execution Visualizer
Watch memory, stack, queues, and output
Execution Visualizer
live
numbers is stored in memory. The original array will be read by map, filter, and reduce.
Call Stack
1 frame
TOP ↑
▲global()
frame 0↓ BOTTOM
Global Context
Memory
1 variableHeap Memory
numbersarr→ refnew
"[1, 2, 3, 4]"Console Output
awaiting output...
varfnobjarrclosure
Code Preview
Active line 1
Code
line 1Tap Expand to view full code
1/9
← → Space R