Lab

How Event Bubbling Works

medium
1/7

Step Explanation

Understand what is happening first

1/7

Execution Visualizer

Watch memory, stack, queues, and output

Execution Visualizer

live
JavaScript gets references to parent and child elements from the DOM.

Call Stack

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

Memory

2 variables

Heap Memory

parentobj→ refnew
"#parent element"
childobj→ refnew
"#child element"
Console Output

awaiting output...

varfnobjarrclosure

Code Preview

Active line 1

Code

line 1
JavaScript
Tap Expand to view full code

1/7