Skip to content

Built-in Objects at a Glance ​

The global environment ships with the commonly used objects of modern JS — no import needed:

CategoryObjects
FundamentalsObject Array String Number Boolean Symbol BigInt Math JSON RegExp
CollectionsMap Set WeakMap WeakSet
MetaprogrammingProxy Reflect Iterator
AsyncPromise
BinaryArrayBuffer DataView and the TypedArray family
Weak referencesWeakRef FinalizationRegistry
ErrorsThe full error type family (TypeError / RangeError / SyntaxError / ReferenceError …)
Date & timeTemporal — the modern date/time API that replaces Date
js
console.log([1, 2, 3].filter(v => v > 1).reduce((a, b) => a + b))  // → 5
console.log(Math.hypot(3, 4))                                       // → 5
console.log(JSON.stringify({ ok: true }, null, 2))

let m = new Map([["a", 1]])
m.set("b", 2)
console.log([...m.keys()])                                          // → [a, b]

For the complete list (including the methods available on each object), see the API Reference §3.