JS: the Global Object
JavaScript the language defines a global object.
Purpose of Global Object
Global object holds all variable/object/function of the JavaScript language as properties.
Value of Global Object
What object is the Global Object depends on the language host.
In web browser, the Global Object is window
.
〔see Browser Window Object〕
In Deno, the Global Object is window
.
In node.js, the Global Object is global
.
〔see Node.js Tutorial〕
globalThis (variable)
Constant Literals
Simple Functions
- JS: eval
- JS: isFinite
- JS: isNaN
- JS: parseInt
- JS: parseFloat
- JS DOM: encodeURI, decodeURI
- JS DOM: encodeURIComponent, decodeURIComponent
- JS DOM: escape, unescape
Static Objects
Primitive Wrapper
Special Objects
- JS: Object (class)
- JS: Array (class)
- JS: Function (class)
- JS: RegExp (class)
- JS: Date (class)
- JS: Set (class)
- JS: Map (class)
- JS: Symbol (class)
- WeakSet
- WeakMap
- JS: Proxy
- JS: Promise Tutorial
Error Objects
EvalError
RangeError
ReferenceError
SyntaxError
TypeError
URIError
Misc
DataView
ArrayBuffer
Float32Array
Float64Array
Int8Array
Int16Array
Int32Array
Uint8Array
Uint8ClampedArray
Uint16Array
Uint32Array