Question · JavaScript and TypeScript course · Module 9: Design Patterns and Architecture
Observer Pattern
When is it best to use the Observer pattern?
Answer options
- When we need to hide implementation details
- When one object needs to notify many others about state changes
- When we want to create objects without using new
- When we need exactly one instance of a class
You can check the correct answer by solving this task in the CodeWorlds game.