I'm currently working on Chrome.
console.log(window.__proto__.__proto__.__proto__);
console.log(window.__proto__.__proto__.__proto__ === EventTarget.prototype);
I've found that first code above returns EventTarget.prototype
This can be verified by the second code, which returns "true"
In addition, the following code also returns true:
console.log(EventTarget.prototype.__proto__ === Object.prototype);
However, problems arise when you track who the child of EventTarget.prototype is.
console.log(window.__proto__.__proto__);
Above code returns below.
WindowProperties {Symbol(Symbol.toStringTag) : "WindowProperties" .....}
When I try to track the constructor "WindowProperties()" or the object "WindowProperties.prototype",
console says
Uncaught ReferenceError: WindowProperties is not defined at :1:13
why is this happen?