Bubbling and Delegation
Talk it through with a coach who asks guiding questions and gives hints until you reach the answer. Pass to mark the challenge as completed.
The problem
- medium
- Pro
A to-do list adds a click listener to every delete button. New items added later don't respond, and with thousands of items the page is sluggish. Explain event bubbling, and how event delegation solves both problems.
Talk this problem through with an AI coach
This is a Pro challenge. Sign in with Google, then upgrade to start a voice session.