Skip to main content
FREE Mock interview & resume review with Sumit. Free right now, no payment needed.Book a slot

Event Emitter

Problem 9intermediate25 mins

Event Emitter

Created on: 5 Sep 2025, 11:30 AM

Time Elapsed
00:00
Problem Description

Build an EventEmitter class that supports subscribing to events, emitting events, and unsubscribing.

Requirements

  • •on() method
  • •emit() method
  • •off() method
  • •once() method
  • •Multiple listeners
  • •Event data passing

Tags

JavaScriptEventsClassesPub-Sub
Code Editor

Loading editor...

Problem discussion

(0)

Join the discussion — login to comment and help other developers.

Login to comment