Put in order · JavaScript and TypeScript course · Module 8: Events and the DOM

CustomEvent syntax

Arrange the creation of a custom event (one line, left to right):

Items to put in order

  • 'dinoAlert',
  • )
  • { detail: data }
  • new CustomEvent(

You can check the correct answer by solving this task in the CodeWorlds game.