---
title: "Discussion on \"window, global, globalThis: Three Names. One Thing in Javascript\" | Hashnode"
description: "Discussion on \"window, global, globalThis: Three Names. One Thing in Javascript\". Three names, one object. Why window breaks in Node.js, why global fails in browsers, and how globalThis finally fixed it."
url: "https://hashnode.com/posts/window-global-globalthis-javascript/69b3009b93256dfc53fcecca"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [window, global, globalThis: Three Names. One Thing in Javascript](https://ayushjjainn.hashnode.dev/window-global-globalthis-javascript?utm_source=hashnode&utm_medium=feed)

Three names, one object. Why window breaks in Node.js, why global fails in browsers, and how globalThis finally fixed it.

Mar 12 · 14 min read · ayushjjainn.hashnode.dev  
Updated Aug 23  
Read the article

-   [#javascript](https://hashnode.com/tag/javascript)
-   [#global-and-globalthis](https://hashnode.com/tag/global-and-globalthis)
-   [#frontend-development](https://hashnode.com/tag/frontend-development)
-   [#technology](https://hashnode.com/tag/technology)
-   [#web-development](https://hashnode.com/tag/web-development)
-   [#webdev](https://hashnode.com/tag/webdev)
-   [#web3](https://hashnode.com/tag/web3)
-   [#chaicode](https://hashnode.com/tag/chaicode)
-   [#programming-blogs](https://hashnode.com/tag/programming-blogs)
-   [#coding](https://hashnode.com/tag/coding)

## Written by

[Ayush Jain](https://hashnode.com/@ayushjjainn)

@ayushjjainn · Jaipur, RJ

  
[View profile](https://hashnode.com/@ayushjjainn)

Building cool things for the internet

I like making things with code. This is where I share my projects and the bugs I ran into.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
