📘global object
🚧 施工中
global object's interface depends on the environment:
in web worker: self (a
WorkerGlobalScope
object)
NaN
/Infinity
/ undefined
Last updated
🚧 施工中
global object's interface depends on the environment:
in web worker: self (a WorkerGlobalScope
object)
NaN
/Infinity
/ undefined
Last updated
an object that always exists in the global scope. ⭐️ get it with globalThis, regardless of the current context/environment
(read-only) global object property
var / function are implemented as global object property
these properties cannot be deleted with delete
assignment (=) to an undeclared identifier will result in accidental global variable in sloppy mode❗️ in sloppy mode