Put in order · JavaScript and TypeScript course · Module 8: Events and the DOM
stopPropagation Syntax in Handler
Arrange the elements of a handler that stops event propagation:
Items to put in order
- event.stopPropagation();
- (event) => {
- handleChild(event) })
- child.addEventListener('click',
You can check the correct answer by solving this task in the CodeWorlds game.