Question · JavaScript and React course · Module 8: Advanced React Patterns

Adapter vs Facade

How does the Adapter pattern differ from the Facade pattern?

Answer options

  • Adapter simplifies a complex system, and Facade unifies interfaces
  • Adapter unifies incompatible interfaces, and Facade simplifies a complex subsystem
  • Adapter only works with classes, and Facade only with hooks
  • There is no difference between them, they are synonyms

You can check the correct answer by solving this task in the CodeWorlds game.