---
title: "Discussion on \"global vs globalThis and its gotchas : Every Developer Should Know\" | Hashnode"
description: "Discussion on \"global vs globalThis and its gotchas : Every Developer Should Know\". H1\nGlobal vs globalThis in JavaScript: What Every Developer Should Know\n\nH2\nWhat is the Global Object in JavaScript?\n\nH2\nThe Problem Before globalThis"
url: "https://hashnode.com/posts/global-vs-globalthis-javascript/69b1cd3c6c896b0519c17668"
---

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

Discussion

# [global vs globalThis and its gotchas : Every Developer Should Know](https://debwrites.hashnode.dev/global-vs-globalthis-javascript?utm_source=hashnode&utm_medium=feed)

H1 Global vs globalThis in JavaScript: What Every Developer Should Know H2 What is the Global Object in JavaScript? H2 The Problem Before globalThis

Mar 11 · 4 min read · debwrites.hashnode.dev  
Read the article

-   [#chaicode](https://hashnode.com/tag/chaicode)
-   [#interview-questions](https://hashnode.com/tag/interview-questions)
-   [#javascript](https://hashnode.com/tag/javascript)
-   [#javascript-framework](https://hashnode.com/tag/javascript-framework)
-   [#chaicohort](https://hashnode.com/tag/chaicohort)
-   [#chaicode-webdev-cohort-2026](https://hashnode.com/tag/chaicode-webdev-cohort-2026)
-   [#chaiaurcode](https://hashnode.com/tag/chaiaurcode)
-   [#global-and-globalthis](https://hashnode.com/tag/global-and-globalthis)
-   [#global](https://hashnode.com/tag/global)
-   [#cohort2026](https://hashnode.com/tag/cohort2026)
-   [#web-dev](https://hashnode.com/tag/web-dev)
-   [#web-development](https://hashnode.com/tag/web-development)

## Written by

[Debabrata Bar](https://hashnode.com/@devh3r3)

@devh3r3

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

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
