Currently I am using Google Chrome browser.
console.log(window.__proto__.__proto__.__proto__);
console.log(window.__proto__.__proto__.__proto__ === EventTarget.prototype);
The first code mentioned above returns EventTarget.prototype for me.
This can be confirmed with the second code, which returns "true."
Furthermore, the following code also evaluates to true:
console.log(EventTarget.prototype.__proto__ === Object.prototype);
However, issues arise when attempting to identify the child of EventTarget.prototype.
console.log(window.__proto__.__proto__);
The code above results in:
WindowProperties {Symbol(Symbol.toStringTag) : "WindowProperties" .....}
When trying to locate the constructor "WindowProperties()" or the object "WindowProperties.prototype",
the console outputs
Uncaught ReferenceError: WindowProperties is not defined at :1:13
Why does this error occur?