function A() {}
function B() {}
A.prototype = B.prototype = {};
let a = new A();
let b = new B();
console.log( b instanceof A );Ответ:
true
JavaScript test | #JavaScript
JA JavaScript test @js_test · 9.68K subscribers function A() {}
function B() {}
A.prototype = B.prototype = {};
let a = new A();
let b = new B();
console.log( b instanceof A );