What is event capturing and event bubbling in javascript interview question

preview_player
Показать описание
An important javascript interview question for fresher to experience.

With bubbling, the event is first captured and handled by the innermost element and then propagated to outer elements.

With capturing, the event is first captured by the outermost element and propagated to the inner elements.

Capturing is also called "trickling", which helps remember the propagation order
Рекомендации по теме
join shbcf.ru