JavaScript objects: the global object
The global object contains properties serving as globally defined symbols. In a browser, it is the window
object; in the Node REPL, it’s global
. In either a browser or REPL, this
in global scope will return the global object.
References
Flanagan, David. Javascript: The Definitive Guide. 6th ed, O’Reilly, 2011.