Learn JavaScript: Classes and Modules
Organize bigger programs: build objects from classes with constructors, methods, getters and setters, inheritance, static members and private fields, then split code into modules with the module pattern, CommonJS and ES modules.
- Intermediate level
- 2 modules
- 16 lessons
- 70 tasks and questions
Syllabus
01ClassesBuild objects from classes: write constructors and methods, use getters and setters, share behavior with inheritance, extend and override parent methods with super, add static helpers, and keep data truly private with # fields.10 lessons
02ModulesLearn where JavaScript runs and why code is split into modules: the closure-based module pattern, Node's CommonJS require and module.exports run through a small loader, standard ES modules shown as real syntax, and a project wiring modules together.6 lessons