---
title: "Discussion on \"Window vs Global vs GlobalThis\" | Hashnode"
description: "Discussion on \"Window vs Global vs GlobalThis\". Understand the difference between global window and globalThis, the need of using it and how different datatypes behave in different environments."
url: "https://hashnode.com/posts/globalthis/69c8968e7816e434a0dcd480"
---

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

Discussion

# [Window vs Global vs GlobalThis](https://saurav26.hashnode.dev/globalthis?utm_source=hashnode&utm_medium=feed)

Understand the difference between global window and globalThis, the need of using it and how different datatypes behave in different environments.

Mar 29 · 5 min read · saurav26.hashnode.dev  
Read the article

-   [#chaicode](https://hashnode.com/tag/chaicode)
-   [#global-and-globalthis](https://hashnode.com/tag/global-and-globalthis)
-   [#window-object-in-javascript](https://hashnode.com/tag/window-object-in-javascript)
-   [#javascript-global-object](https://hashnode.com/tag/javascript-global-object)

## Written by

[Saurav Pratap Singh](https://hashnode.com/@saurav26)

@saurav26

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

Developer

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
