Login to manage your account

Please enter a valid email address.
Forgot Password?
Please enter a valid password.
OR

Don't have an account yet? Sign up

What is the EventEmitter class used for?

  1. A Emitting HTTP requests
  2. B Implementing the publish-subscribe pattern with named events and listeners
  3. C Scheduling timers
  4. 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.

All NodeJS MCQs

Login to manage your account

Please enter a valid email address.
Forgot Password?
Please enter a valid password.
OR

Don't have an account yet? Sign up as