JS: the Global Object

By Xah Lee. Date: . Last updated: .

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 (2013)]

Globalthis (variable)

Properties

JavaScript. global object