On this page
Global
Prev: Intl | Up: builtins | Next: tutorials
Rel: JS Core Syntax & Types, Prototype Chain & new Flow
Ref: MDN Web Docs — Global
Tags: #public #web #javascript #builtins #global #index
Overview
Top-level global functions and values available without a namespace prefix.
Core (#tier/core)
- Global.structuredClone — Native deep clone supporting
Date,Map,Set,RegExp,TypedArray, and circular references. - Global.Number_isNaN — Returns
trueonly ifvalueis literally theNaNnumber (no type coercion). - Global.parseInt — Parses a leading integer in the given
radix(always pass10explicitly!). - Global.encodeURIComponent — Percent-encodes a single URI query parameter value safely.
Standard (#tier/standard)
- Global.queueMicrotask — Schedules
callbackon the microtask queue right after the current call stack empties (before rendering/timers). - Global.globalThis — Standard cross-environment reference to the global object (
windowin browsers,globalin Node,selfin Workers).
Legacy / Avoid (#tier/legacy)
- Global.isNaN — Legacy global function that coerces non-numbers first (
isNaN('hello') === true). Prefer Number.isNaN().
Linked from
- tuts/javascript/builtins
- tuts/javascript/builtins/Global/encodeURIComponent
- tuts/javascript/builtins/Global/globalThis
- tuts/javascript/builtins/Global/isNaN
- tuts/javascript/builtins/Global/Number_isNaN
- tuts/javascript/builtins/Global/parseInt
- tuts/javascript/builtins/Global/queueMicrotask
- tuts/javascript/builtins/Global/structuredClone
- tuts/javascript/builtins/Intl
- tuts/javascript/builtins/Intl/Collator
Related notes
- tuts/javascript/builtins Linked here; links to this page; shared tags: #builtins, #index, #javascript, #web
- tuts/javascript/builtins/Global/encodeURIComponent Linked here; links to this page; shared tags: #builtins, #global, #javascript, #web
- tuts/javascript/builtins/Global/globalThis Linked here; links to this page; shared tags: #builtins, #global, #javascript, #web
- tuts/javascript/builtins/Global/isNaN Linked here; links to this page; shared tags: #builtins, #global, #javascript, #web
- tuts/javascript/builtins/Global/Number_isNaN Linked here; links to this page; shared tags: #builtins, #global, #javascript, #web
- tuts/javascript/builtins/Global/parseInt Linked here; links to this page; shared tags: #builtins, #global, #javascript, #web
- tuts/javascript/builtins/Global/queueMicrotask Linked here; links to this page; shared tags: #builtins, #global, #javascript, #web
- tuts/javascript/builtins/Global/structuredClone Linked here; links to this page; shared tags: #builtins, #global, #javascript, #web
- tuts/javascript/builtins/Intl Linked here; links to this page; shared tags: #builtins, #index, #javascript, #web
- tuts/javascript/builtins/Intl/Collator links to this page; shared tags: #builtins, #javascript, #web