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" दिखाते हैं, तो चैलेंज इस ब्राउज़र में हल के रूप में चिह्नित हो जाता है।
अपना समाधान समीक्षा के लिए भेजें