Pregunta de entrevista de TikTok

To write an event emitter in javascript