-
Notifications
You must be signed in to change notification settings - Fork 4k
Open
Description
In the first section. your reference to 'prototype' is confusing and, if I understand the concept correctly, incorrect:
let animal = {
eats: true
};
// create a new object with animal as a **prototype**
let rabbit = Object.create(animal); // same as {__proto__: animal}
In this example:
- rabbit's [[Prototype]] property is set to animal
It's unfortunate that the JS specification used the same word for two different concepts, b/c I think even experts like you guys occasionally conflate the two terms.
Am I missing sth?
Metadata
Metadata
Assignees
Labels
No labels