JavaScript coding interview — Events — Part 8
1 min readSep 6, 2020
Events
Event manager
Write event emitter-base class that allows you to add event listeners
https://netbasal.com/javascript-the-magic-behind-event-emitter-cce3abcbcef9
Custom events
Events can be created with the Event constructor as follows:
let event = new Event(type[, options]);