Given the following setup, where obj inherits the property name from x
var x={name:"sameer"};
var y=Object.create(x);
y.name="pathak";
alert(y.__proto__.name)
i need to know why assigning property doesn't change the property in prototype since with .
operator javascript consults the prototype chain and if it finds the similar property it should either replace or regect the change isn't it??Or is it because the property foo in prototype has writable attribute set to false??