The global object is the top-most context that all other objects belong to. It has certain properties and functions that you can rely on to build your applications. It also serves an important role in web development—being the upper-most context for scoping and also sharing the stage with some very high-level browser features you will come to rely on. Among other things, the global object contains:
String, Number, Math, and so on.
Several built-in properties that you use from time to time in the language.
Several built-in functions.
Several browser-specific objects such as the
It also serves a useful purpose in scoping. When a variable is referenced but not found, the interpreter ...