thisis my code part 1
file path is D:\code\test.js,export TestClone
class Test {
}
class Test2 extends Test {
}
module.exports.TestClone = Test2
this my code part 2
file path is D:\code\test2.js,export TestClone
const { TestClone } = require('./test');
class Test {
}
class Test2 extends Test {
}
console.log(new Test2() instanceof TestClone); // false
The name and structure of the two classes are the same, but why is it false