if I set a prototype value and make two instances
then update the prototype value in one instance
now other instance prototype value does not update, why?
code is
var A = function() {
}
A.prototype.u = 2;
var a = new A();
var b = new A();
a.u = 4
alert(a.u) // 4
alert(b.u) // 2
it's so unreasonable, it's prototype value not this value. right?
A.prototype.uas in Quentin's answer.