JavaScript: the Global Object

By Xah Lee. Date: . Last updated: .

JavaScript the language defines a global object.

Which object is the global object depends on the language host.

In web browser, the global object is window.

〔►see JavaScript: Browser Window Object, Document Object Model

In node.js, the global object is global.

〔►see Xah's Node.js Tutorial

Value Properties

〔►see JavaScript: Data Types

Function Properties

〔►see JavaScript: Convert String to Number

〔►see JavaScript Encode URL, Escape String

Constructor Properties

Most useful ones:

Less useful ones:

Error objects:

Misc:

Other Properties

  1. JSON
  2. Math
  3. Reflect

Reference

ECMAScript® 2016 Language Specification#sec-global-object
Like what you read? Buy JavaScript in Depth
or, buy a new keyboard, see Keyboard Reviews.