ControlUp interview question

- Write Event Emitter in JavaScript.