Question - What is the use of EventEmitter in Node.js?
Answer -
Every single object in Node.js that emits is nothing but an instance of the EventEmitter class. These objects have a function that is used to allow the attachment between the objects and the named events.
Synchronous attachments of the functions are done when the EventEmitter object emits an event.