Module 4 · 5 lessons · ~2 hrs
Classes & OOP
Prototypes, classes, inheritance, private fields, and when composition beats inheritance.
4.1
JavaScript Prototypes and the Prototype Chain Explained (with `class` Decoded)
Read
4.2
JavaScript Classes Explained: Constructors, Methods, Inheritance, and the Desugaring Story
Read
4.3
JavaScript Inheritance Patterns: Classes vs Composition vs Mixins
Read
4.4
JavaScript Private Fields and Static Members: True Encapsulation with #name and static
Read
4.5
JavaScript Mixins and Composition: When Inheritance is the Wrong Tool
Read