Put in order · JavaScript and TypeScript course · Module 8: Events and the DOM
Event Delegation Syntax
Arrange the event delegation elements:
Items to put in order
- 'click', (e) => {
- .addEventListener(
- parent
- if (e.target.matches('.item')) select(e.target) })
You can check the correct answer by solving this task in the CodeWorlds game.