InterviewSolution
Saved Bookmarks
| 1. |
What is EventEmitter in Node.js? |
|
Answer» EventEmitter class lies in the events module and is accessibly through the following syntax: //IMPORT events module In CASE an EventEmitter INSTANCE is facing error, it emits 'error' EVENT. When a new LISTENER is added, the 'newListener' event gets fired and when a listener gets removed, 'removeListener' event gets fired. |
|