📘global object
🚧 施工中
an object that always exists in the global scope. ⭐️ get it with globalThis, regardless of the current context/environment❗
global object's interface depends on the environment:
in web worker: self (a
WorkerGlobalScopeobject)
(read-only) global object property❗
NaN/Infinity/ undefined
in global scope,
var / function are implemented as global object property❗
these properties cannot be deleted with delete❗
properties of global object
read-only
NaN 🚧
Infinity 🚧
NaN
Infinity
global
function declarations
Last updated
Was this helpful?