concept base class in category javascript

This is an excerpt from Manning's book Node.js in Practice.
EventEmitter can be used in various ways—it’s generally used as a base class for solving a wide range of problems, from building network servers to architecting application logic. In view of the fact that it’s used as the basis for key classes in popular Node modules like Express, learning how it works can be useful for writing idiomatic code that plays well alongside existing modules.
Each of the stream module base classes emits various events, which depend on whether the base class is readable, writable, or both. The fact that streams inherit from EventEmitter means you can bind to various standard events to manage streams, or create your own custom events to represent more domain-specific behavior.