global-object
- resources: https://developer.mozilla.org/en-US/docs/Glossary/Global_object
- 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 aWorkerGlobalScope
object as its global object. - Scripts running under Node.js have an object called
global
as their global object.
- In a web browser, any code which the script doesn't specifically start up as a background task has a