EncapsulationCommonJS Module import functionality from another module?Through the use of the import-from syntax that looks like this:
import SymbolName from './relative-path.js';
CommonJS Modules allow other modules to access exported symbols?ES6 Modules export functionality so other modules can use them?Implementation inheritanceInheritancePrototypal inheritanceThe constructor methodThe Dependency Inversion Principleextends keywordThe Interface Segregation PrincipleThe Law Of DemeterThe Liskov Substitution PrincipleThe Open-Close PrincipleThe Single-Responsibility PrincipleAny one of the following:
A class should do one thing and do it well.
A class should have only one reason to change.
Gather together the things that change for the same reasons. Separate those things that change for different reasons.