---
title: "Discussion on \"Understanding global vs globalThis in JavaScript\" | Hashnode"
description: "Discussion on \"Understanding global vs globalThis in JavaScript\". Understand the difference between global and globalThis in JavaScript and when to use each for writing clean, cross-platform code."
url: "https://hashnode.com/posts/understanding-global-vs-globalthis-in-javascript/69b92afc3cc3ab373f995551"
---

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

Discussion

# [Understanding global vs globalThis in JavaScript](https://aryan-blog.hashnode.dev/understanding-global-vs-globalthis-in-javascript?utm_source=hashnode&utm_medium=feed)

Understand the difference between global and globalThis in JavaScript and when to use each for writing clean, cross-platform code.

Mar 17 · 3 min read · aryan-blog.hashnode.dev  
Read the article

-   [#chaicode](https://hashnode.com/tag/chaicode)
-   [#chaiaurcode](https://hashnode.com/tag/chaiaurcode)
-   [#chaicohort](https://hashnode.com/tag/chaicohort)
-   [#global-and-globalthis](https://hashnode.com/tag/global-and-globalthis)
-   [#web-development](https://hashnode.com/tag/web-development)

## Written by

[Aryan Gupta](https://hashnode.com/@aryan-blog)

@aryan-blog · Ghaziabad, India

  
[View profile](https://hashnode.com/@aryan-blog)

Developer learning things with chai

I write blogs/articles on Software development.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
