Put in order · JavaScript and TypeScript course · Module 8: Events and the DOM
addEventListener Syntax with Options
Arrange the code fragments to add a one-time event listener:
Items to put in order
- , { once: true })
- , handler
- button.addEventListener(
- 'click'
You can check the correct answer by solving this task in the CodeWorlds game.