01
Prototype Model
The prototype link and the property lookup chain, object-to-object inheritance patterns, class syntax's counterpart on the chain, property descriptors, and immutability techniques.
- 01 Object Prototype The prototype link every object carries, the order in which properties are searched through this link, the distinction between an own property and an inherited property, and where the chain ends.
- 02 Prototypal Inheritance The link constructor functions and the new operator set up, extending the prototype chain to two layers, type-query operations, and the link changing at runtime.
- 03 Class Syntax Class declaration's exact counterpart on the prototype chain, the static side's inheritance, method enumerability, and the real differences syntax brings.
- 04 Property Descriptors The writability, enumerability, and configurability flags a property carries alongside its value; accessor properties and copying that preserves descriptors.
- 05 Immutability Techniques The scope of freezing, sealing, and preventing extensions; the consequences of their staying shallow, deep freezing, and patterns for producing a new object instead of a change.