function MyClass() {};
MyClass.prototype.isNamed = false;
var a = new MyClass();
var b = new MyClass();
alert([a.isNamed, b.isNamed]);
MyClass.prototype.isNamed = true;
alert([a.isNamed, b.isNamed]);
function MyClass() {
this.isNamed = false;
};
var a = new MyClass();
var b = new MyClass();
alert([a.isNamed, b.isNamed]);
MyClass.prototype.isNamed = true;
alert([a.isNamed, b.isNamed]);