Objects, Prototypes, this Binding & Classes
Master object internals: property descriptors, prototype chain delegation, the four rules of this binding, and modern ES6+ class architecture.
Solid grasp of closures, functions, and primitive/reference distinctions.
Configure property descriptors, understand prototype delegation over inheritance, master 'this' binding, and author modern ES6+ classes.
Read in order, or jump to what you need.
Every lesson builds on the one before it. Open any lesson to read the explanation, run the examples, and try the practice challenges.
- 05.01Object Literals, Property Attributes & Object.defineProperty4 min
Dive beneath object literals. Explore property descriptors: writable, enumerable, configurable, getters, setters, and object freezing.
- 05.02The Prototype Chain: Inheritance via Object Delegation4 min
Demystify JavaScript's object model. Learn how prototype delegation works, inspect [[Prototype]] links, and leverage Object.create() for behavior delegation.
- 05.03The Four Rules of this: Default, Implicit, Explicit & new4 min
Master the most misunderstood keyword in JavaScript. Learn the four deterministic rules that govern 'this' binding at call time.
- 05.04Modern ES6+ Classes: Constructors, #private Fields & Subclassing4 min
Master modern ECMAScript class syntax. Understand constructor semantics, true private fields (#), static members, super(), and prototype inheritance.
Ready to move on?
Implement a polymorphic component hierarchy using private fields (#) and behavior delegation.
Open the module self-check