Yes
**Publish-subscribe pattern** is all about **INDIRECT COMMUNICATION** between two entities.
These two entities don't know about each other meaning they **don't hold a reference to each other**. By they I mean publisher and subscriber of course. Thanks to that these two entities are **decoupled** and can talk to each other via subscriptions.
Here I make short video about pub-sub pattern and implemented in the simplest way possible in vanilla JavaScript, take a look: https://www.youtube.com/watch?v=C3jVjeSGLGY
**Publish-subscribe pattern** is all about **INDIRECT COMMUNICATION** between two entities.
These two entities don't know about each other meaning they **don't hold a reference to each other**. By they I mean publisher and subscriber of course. Thanks to that these two entities are **decoupled** and can talk to each other via subscriptions.
Here I make short video about pub-sub pattern and implemented in the simplest way possible in vanilla JavaScript, take a look: https://www.youtube.com/watch?v=C3jVjeSGLGY