What is the EventEmitter class used for?
- A Emitting HTTP requests
- B Implementing the publish-subscribe pattern with named events and listeners
- C Scheduling timers
- D Parsing event logs
Answer
Implementing the publish-subscribe pattern with named events and listeners
Many core objects inherit from EventEmitter. An unhandled 'error' event throws and crashes the process, which is deliberate.





