Put in order · JavaScript and TypeScript course · Module 8: Events and the DOM

Event Delegation Configuration

Arrange the steps for configuring event delegation:

Items to put in order

  • Add a listener on the parent
  • Find the parent element (container)
  • Execute the action for the matching element
  • Check event.target in the callback

You can check the correct answer by solving this task in the CodeWorlds game.