javascript
beginner
נפתר
מסתיים ב-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.
נפתר עד כה על ידי 0 אנשים.
עורךCtrl + Enter
כשהבדיקות מדפיסות "All tests passed", האתגר מסומן כפתור בדפדפן הזה.
שליחת הפתרון לבדיקה