---
title: "Discussion on \"Beyond window: Understanding global and globalThis in JavaScript\" | Hashnode"
description: "Discussion on \"Beyond window: Understanding global and globalThis in JavaScript\". When you wrote your first line of Node.js code, you probably typed console.log(\"Hello World\") and it just worked. No import. No setup. Nobody told you where console came from, and at the time, it did"
url: "https://hashnode.com/posts/beyond-window-understanding-global-and-globalthis-in-javascript/69afe508af06a097c31b2382"
---

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

Discussion

# [Beyond window: Understanding global and globalThis in JavaScript](https://blog.saumyagrawal.in/beyond-window-understanding-global-and-globalthis-in-javascript?utm_source=hashnode&utm_medium=feed)

When you wrote your first line of Node.js code, you probably typed console.log("Hello World") and it just worked. No import. No setup. Nobody told you where console came from, and at the time, it did

Mar 10 · 8 min read · blog.saumyagrawal.in  
Updated Mar 18  
Read the article

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

## Written by

[Saumya](https://hashnode.com/@saumyaetc)

@saumyaetc · Lucknow

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

Refactoring to Software Development

Trying to transition my career to explore new things, new tech

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
