Design Patterns · Junior · Question 11 of 75
What is a Facade?
- ✓Correct answer: A simple interface on top of a complex subsystem
- 2The site's home page with the main navigation
- 3A copy of an object for safely passing it outside
Explanation
For example, an api module with getUser() and updateUser() hides fetch, headers, tokens, error handling and data transformation. The rest of the code doesn't know the details. A facade reduces coupling but shouldn't grow into a "god object".