Skip to content

Glossary: Software Design Patterns in JavaScript

Observer

Also written: observer pattern

A pattern where the code where something happens (the subject) keeps a list of listeners and calls each one when the event happens, without knowing what they do.

Where the book teaches it

Related terms

ListenerSubjectPublish/subscribeEvent bus