Click in order · JavaScript and TypeScript course · Module 8: Events and the DOM
Sorting: Delegation for dynamic elements
Arrange the event-delegation condition that checks the clicked element:
Items to click
- handleClick(e);
- (e.target
- if
- .matches('.btn'))
You can check the correct answer by solving this task in the CodeWorlds game.