- In a web browser, any code which the script doesn't specifically start up as a background task has a
- Code running in a
WorkerGlobalScopeobject as its global object.
- Scripts running under Node.js have an object called
globalas their global object.