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: global isNaN
- JS: parseInt
- JS: parseFloat
- JS DOM: encodeURI
- JS DOM: encodeURIComponent
- 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
EvalErrorRangeErrorReferenceErrorSyntaxErrorTypeErrorURIError
Misc
DataViewArrayBufferFloat32ArrayFloat64ArrayInt8ArrayInt16ArrayInt32ArrayUint8ArrayUint8ClampedArrayUint16ArrayUint32Array