Withcodeexample
2 months agoJavascript Solid Principles
Each class should have a single responsibility (SRP)
Software entities should be open for extension but closed for modification (OCP)
Subtypes should be substitutable for their base types (LSP) [ more ]