PatAtCP

Results comments of PatAtCP

Object.create is a synonym for `f = {}, f.prototype = o;` In your first example, `o.a` is an "simple" (and, more accurately, _immutable_) object so a copy is passed from...

Yes, `__proto__` and `prototype` are different beasts, but essentially similar mechinisms for adding predefined methods and attributes. I wasn't aware of which one Object.create used specifically. As for the other...

if you use another method to create a read only property, it reacts the same way as with `Object.defineProperty` ``` JavaScript o = {get a() {return 2} }; //o.a is...

I think the behaviour is fairly consistent. as mentioned, there is a `[[Prototype]]` check for writability. done before any `[[Set]]` action. If the property is read-only or contains a setter,...