LinkedIn interview question

Event Propagation - specifically event bubbling. Give example.

Interview Answer

Anonymous

Jun 6, 2018

I got interview on 2018 06 06 Abutton is clicked and the event is directed to the button If an event handler is set for that object, the event is triggered If no event handler is set for that object, the event bubbles up (like a bubble in water) to the objects parent