function Obj(){};
Obj.prototype.fnc = function(){alert(5)};
obj = new Obj();
obj.fnc(); // 5
Obj.prototype.fnc = function(){alert(51)};
obj.fnc(); //51
function Obj(){
this.fnc = function(){
alert(5);
}
};
obj = new Obj();
obj.fnc && obj.fnc();
Obj.prototype.fnc = function(){alert(52)};
obj.fnc();
А это шикааарно!