If every object inherits from Object
why does console.log(e.hasOwn(test1.prototype,"eu"))
give me this error?
Uncaught TypeError: e.hasOwn is not a function
function test1() {
this.senha = "ooopa";
}
test1.word = "any"
test1.prototype.eu = "true"
function test2() {
this.name = "euler";
}
var t = new test2();
var e = new test1();
console.log(Object.hasOwn(test1.prototype, "eu"));
console.log(e.hasOwn(test1.prototype, "eu"));