I was trying to understand what the relationship is between the global object in javascript and all the other built-in object. As I understand everything in javascript is in the Object object, also the global object. At least it seems that way when I'm using these commands:
console.log(globalThis.__proto__.constructor) // Window() console.log(globalThis.__proto__.__proto__.constructor) // WindowProperties() console.log(globalThis.__proto__.__proto__.__proto__.constructor) // EventTarget console.log(globalThis.__proto__.__proto__.__proto__.__proto__.constructor) // Object
Is this correct?