Lab

Arrow Functions

medium
1/1

Step Explanation

Understand what is happening first

1/1

Execution Visualizer

Watch memory, stack, queues, and output

Execution Visualizer

live
The arrow function add is stored in memory.

Call Stack

1 frame
TOP ↑
global()
frame 0
↓ BOTTOM
Global Context

Memory

1 variable

Heap Memory

addfn→ refnew
"(a, b) => a + b"
Console Output

awaiting output...

varfnobjarrclosure

Code Preview

Active line 1

Code

line 1
JavaScript
Tap Expand to view full code

1/1