Skip to content

Glossary: Software Design Patterns in JavaScript

EventEmitter

Also written: addEventListener

Node's built-in class for publishing and listening to events with `on` and `emit`, much like a hand-written event bus. The browser's `addEventListener` follows the same idea.

Where the book teaches it

Related terms

Event busObserver