Devtools Tech Logo
0
0
0

What would be the output on the button click? (Event Handling)

Option 1
child
father
grandfather
Option 2
grandfather
father
child
Option 3
child
child
child
Option 4
undefined
undefined
undefined