// ベースクラス function A(){} A.prototype.name = 'Aです。'; A.prototype.age = 15; // サブクラス function B(){} B.prototype.name = 'Bです。'; B.prototype.job = 'Engineer'; B.prototype = new A(); B.prototype.constructor = B;// 新しく追加 // 検証 console.debug(A.prototype);// A {...} console.debug(B.prototype);// B {...}