function A() { } A.prototype.test = 1; function B() { } B.prototype = A.prototype; //A'yı düzenlemiyoruz aslında, B'yı değiştirmek istiyoruz. B.prototype.test = 2; alert((new A()).test); //Fakat A sınıfı bozulmuş :(