Quiz Challenges
100
Question 33 of 100
33%
33
What is the main advantage of event delegation - attaching a single listener to a parent element instead of one to each child?
A
It disables event bubbling entirely so events cannot propagate further up the DOM
B
It changes what `this` refers to inside the handler so it always points to the window object
C
It guarantees the handler runs on a separate thread from the rest of the page's JavaScript
D
It reduces the number of listeners needed and automatically works for children added to the DOM later, since it relies on event bubbling up to a common ancestor
Submit Answer
Previous
33
/
100
Next