var foo = {x: 1} var bar = {__proto__: foo} // __proto__ specific to implementation var bar = Object.create(foo) // same result as above with standard API console.l
Assigning to an object property creates or updates the object's own property, there is no search on the prototype chain for an inherited property.
See ECMAScript Simple Assignment ( = ) §11.13.1.