🌟global scope
Last updated
Was this helpful?
Last updated
Was this helpful?
Was this helpful?
(in a programming environment) the scope that contains, and is visible in, all other scopes.
global object - an object that always exists in the global scope.
globalThis - identifier for the global object.
window - global object in browser.
- global object in web worker.
- global object in Node.js.
- check if current context is in global scope.
global functions: eval, parseInt()
...
namespaces: Math
, Atomics
, JSON
...
friends of JS: Intl
, WebAssembly
...
console
timers:setTimeout(..)
, ...
web APIs:navigator
, history
, geolocation, WebRTC, ...
web worker:??? (anything else?)
Node.js:???