js class test(1)
by regepan
JavaScript
// ベースクラス
function A(){}
// サブクラス
function B(){}
// 検証
console.log(A.prototype);// A {}
console.log(B.prototype);// B {}
by regepan
// ベースクラス
function A(){}
// サブクラス
function B(){}
// 検証
console.log(A.prototype);// A {}
console.log(B.prototype);// B {}