Question · JavaScript and TypeScript course · Module 9: Design Patterns and Architecture

Open/Closed Principle

What does the Open/Closed Principle mean?

Answer options

  • The database should be open to direct queries from the frontend
  • Classes should be open for extension but closed for modification
  • Source files should be open for editing by all developers
  • APIs should be publicly open without authorization

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