Skip to main content

Explain event delegation.

Entry JavaScript
Quick Answer Event delegation attaches one event listener to a parent element instead of individual listeners on every child. The event bubbles up from the clicked child to the parent listener. The listener checks event.target to determine which child was clicked. More efficient for dynamic lists รขโ‚ฌโ€ no need to add/remove listeners as items are added or removed.

Answer

Event delegation uses a single parent listener to manage events for child elements using event bubbling.

S
SugharaIQ Editorial Team Verified Answer

This answer has been peer-reviewed by industry experts holding senior engineering roles to ensure technical accuracy and relevance for modern interview standards.

Want to bookmark, take notes, or join discussions?

Sign in to access all features and personalize your learning experience.

Sign In Create Account

Source: SugharaIQ

Ready to level up? Start Practice