---
hide_title: false
hide_table_of_contents: false
pagination_next: null
pagination_prev: null
---
# globalThis

The global **`globalThis`** property contains the [global `this`](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Operators/this#global_context) value, which is usually akin to the [global object](https://developer.mozilla.org/docs/Glossary/Global_object).

## Value

The global `this` object.

> **Note:** The `globalThis` property is configurable and writable so that code authors can hide it when executing untrusted code and prevent exposing the global object.

## Description

The `globalThis` property provides a standard way of accessing the global `this` value (and hence the global object itself) across environments.

