Enhance the Event Emitter class to support method chaining.
Asked in frontend interviews at LinkedIn, Airbnb, Google and 4 more