On this page
  1. Global.globalThis
  2. Signature & Overview
  3. Notes & Pitfalls
  4. Example

Global.globalThis

Prev: queueMicrotask | Up: Global | Next: isNaN
Rel: Global, JS Core Syntax & Types
Ref: MDN Web Docs — Global.globalThis
Tags: #public #web #javascript #builtins #global #tier/standard


Signature & Overview

globalThis

Standard cross-environment reference to the global object (window in browsers, global in Node, self in Workers).

Notes & Pitfalls

Example

console.assert(typeof globalThis.setTimeout === "function");

Linked from

Related notes