SmartNews interview question

Coding: Implement your own EventEmitter using JavaScript (or TypeScript)