Need help with EventEmitter

I hade this task:
Invoke myEmitter ‘s .on() method passing in 'celebration' as the event name and listenerCallback as the listener callback function.

I started line writing myEmitter, but in answers was someEmitter, could someone explain me, why it has to be someEmitter, please? :confused:

Hello, and welcome to the forums

If you mean that the variable name in the “Get a hint” section of the task doesn’t match, then that is something they often do in order to give you a hint without giving you the answer directly. This also helps prevent copy/pasting without understanding the code in the lesson.

It sounds like they replaced myEmitter with someEmitter in the hint. You should continue using the names given in the task to complete it.

2 Likes