Question · JavaScript and TypeScript course · Module 9: Design Patterns and Architecture

EventEmitter - Methods

What three basic methods should an EventEmitter implement?

Answer options

  • create(), destroy(), update()
  • start(), stop(), restart()
  • on() (listen), off() (detach), emit() (emit event)
  • push(), pull(), sync()

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