javascript
beginner
Risolta
Termina il 2026-11-17
Build a tiny event emitter
Write a class Emitter with:
on(event, handler): subscribe; returns a function that unsubscribes.once(event, handler): subscribe for one call only.emit(event, ...args): call every handler foreventin the order they subscribed.
Risolta finora da 0 persone.
EditorCtrl + Enter
Quando i test mostrano "All tests passed", la sfida viene segnata come risolta in questo browser.
Invia la tua soluzione per la revisione