FlashcardNot attempted
Prototypal inheritance
Recall it before you reveal
Explain prototypal inheritance, and the difference between reading and writing a property.
Space to reveal
Show answer & explanation
Every object has a hidden [[Prototype]] link. Reading a property walks the chain: own object, then its prototype, then up to Object.prototype → null. Writing always creates/updates an OWN property (it shadows; it never changes the prototype), unless a setter is found up the chain, or the inherited property is read-only (then the write fails, and throws in strict mode).
new links instances to Fn.prototype; Object.create(proto) links directly. Classes are syntax over the same mechanism.