Put in order · JavaScript and TypeScript course · Module 9: Design Patterns and Architecture
Stages of Observer Pattern Implementation
Arrange the stages of Observer pattern implementation in an application:
Items to put in order
- Register observers in application components
- Define the EventEmitter interface (on/emit/off)
- Add the emit() method to notify subscribers
- Implement the subscriber registry (listeners)
You can check the correct answer by solving this task in the CodeWorlds game.