Skip to content

Glossary: Software Design Patterns in JavaScript

Subject

In the Observer pattern, the object or code where an event happens and whose listeners subscribe to it. An event bus is a subject.

Where the book teaches it

Related terms

ObserverListener