Click in order · JavaScript and TypeScript course · Module 8: Events and the DOM
Sort: dispatchEvent
Arrange the elements for dispatching a custom event:
Items to click
- .dispatchEvent(
- new CustomEvent(
- 'alert'))
- element
You can check the correct answer by solving this task in the CodeWorlds game.