The Global object
From Web Education Community Group
First, it should be noted that a basic understanding of Objects are assumed so, if you are unsure of what is meant by the term Object, you can read more about Objects in the general programming section.
What is the global object?
(Note: All discussions of the global object below assumes that the code will be executed in a user agent (browser) environment)
In short, the global object is the Window object, and is implicit.
The Window object is what is referred to when people talk about the Global object but, in reality there are between 40 - 45 global objects all of which we will deal with in other parts of the curriculum.
What do you mean it’s implicit?
Under the hood this is interpreted as:
This is also why the following two lines of code will achieve the exact same end result:
window.alert(“Hello World”); alert(“Hello World”);