Glossary Term
Global object
The global object in JavaScript is an object which represents the global scope.
Note: Globally available objects, which are objects in the global scope, are sometimes also referred to as global objects, but strictly speaking, there is only one global object per environment.
In each JavaScript environment, there’s always a global object defined. The global object’s interface depends on the execution context in which the script is running. For example:
In a web browser, any code which the script doesn’t specifically start up as a background task has a Window as its global object. This is the vast majority of JavaScript code on the Web. Code running in a Worker has a WorkerGlobalScope object as its global object. Scripts running under Node.js have an object called global as their global object.
Term Connections
Explore related terms connected by shared tags, shared categories, and relationship phrases. This map loads only when it comes into view.
Loading term connections…
