hardJavaScript

Implement Event Emitter

Create an EventEmitter class that supports registering listeners, emitting events, and removing listeners. Methods required: - on() - emit() - off()
Ensure function signatures match starter code to run test cases.
index.js
Loading...

Test Case #1

Input: eventEmitter.on('test',callback)

Expected: callback executed

Solve Implement Event Emitter | Algorithmic Interview Drill