Question · JavaScript and TypeScript course · Module 5: Advanced JavaScript

Single Responsibility Principle

What does the Single Responsibility Principle mean?

Answer options

  • Each class/module should have only one responsibility and one reason to change
  • Each function should have exactly one parameter
  • Each file should export only one variable
  • Each application should have one entry point

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