---
title: "Discussion on \"SHORTEST JS Program 🔥window & this keyword\" | Hashnode"
description: "Discussion on \"SHORTEST JS Program 🔥window & this keyword\". In this blog, we will explore the window object in JavaScript and its connection to the \"this\" keyword.\nTo understand this connection, we will write the shortest possible program in JavaScript and see how it behaves.\nHere is the shortest program we c..."
url: "https://hashnode.com/posts/shortest-js-program-window-this-keyword/63f9cfcf2b39599b570c6781"
---

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

Discussion

# [SHORTEST JS Program 🔥window & this keyword](https://dailylearn.hashnode.dev/shortest-js-program-window-this-keyword?utm_source=hashnode&utm_medium=feed)

In this blog, we will explore the window object in JavaScript and its connection to the "this" keyword. To understand this connection, we will write the shortest possible program in JavaScript and see how it behaves. Here is the shortest program we c...

Feb 25, 2023 · 4 min read · dailylearn.hashnode.dev  
Updated Mar 7, 2023  
Read the article

-   [#javascript](https://hashnode.com/tag/javascript)
-   [#window-object](https://hashnode.com/tag/window-object)
-   [#namaste-javascript](https://hashnode.com/tag/namaste-javascript)

## Written by

[haresh lakhwani](https://hashnode.com/@Haresh9958)

@Haresh9958 · Ahemdabad India

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

Sr Software Engineer at GlobalLogic.

Experienced developer with a background in native Android development and cross-platform development with React Native. Strong collaborator with a focus on attention to detail and staying up-to-date with the latest technologies. Currently expanding knowledge in data structures and system design. Capable of delivering high-quality applications utilizing React and React Native.

## Responses 7

Markdown supported · ⌘↵ to post

[Akash](https://hashnode.com/@akash87)

[Mar 20, 2023](https://hashnode.com/posts/shortest-js-program-window-this-keyword/63f9cfcf2b39599b570c6781/comment/6418d8406fd77cec7793b902)

Fantastic [haresh lakhwani](https://hashnode.com/@Haresh9958). Thanks for sharing

[Hena jones](https://hashnode.com/@hena779)

[Mar 11, 2023](https://hashnode.com/posts/shortest-js-program-window-this-keyword/63f9cfcf2b39599b570c6781/comment/640c83bee1ece738019bd076)

Do we need to understand windows default properties

[Riya Thakor](https://hashnode.com/@thakor847)

[Mar 4, 2023](https://hashnode.com/posts/shortest-js-program-window-this-keyword/63f9cfcf2b39599b570c6781/comment/64034eb86cc7b7a22094c50c)

Shortest explanation !!

[Ram Valoriya](https://hashnode.com/@valoriya476)

[Mar 4, 2023](https://hashnode.com/posts/shortest-js-program-window-this-keyword/63f9cfcf2b39599b570c6781/comment/6402f55ca50f11a2517c0ed7)

Simplest explanation

[haresh lakhwani](https://hashnode.com/@Haresh9958)

[Mar 11, 2023](https://hashnode.com/posts/shortest-js-program-window-this-keyword/63f9cfcf2b39599b570c6781/comment/6402f55ca50f11a2517c0ed7#reply-640c853fe1ece738019bd0b3)

Glad you liked it [Ram Valoriya](https://hashnode.com/@valoriya476)

[Jignesh Kumar](https://hashnode.com/@kumar716)

[Mar 4, 2023](https://hashnode.com/posts/shortest-js-program-window-this-keyword/63f9cfcf2b39599b570c6781/comment/6402f32ba50f11a2517c0e6d)

Great write

[haresh lakhwani](https://hashnode.com/@Haresh9958)

[Mar 11, 2023](https://hashnode.com/posts/shortest-js-program-window-this-keyword/63f9cfcf2b39599b570c6781/comment/6402f32ba50f11a2517c0e6d#reply-640c8522bf33d83cdec14c33)

Thanks [Jignesh Kumar](https://hashnode.com/@kumar716) hope you found helpful

[Robert jones](https://hashnode.com/@robert369)

[Feb 26, 2023](https://hashnode.com/posts/shortest-js-program-window-this-keyword/63f9cfcf2b39599b570c6781/comment/63fb90f242967b0d40d36b95)

Well done

[kalpash chavda](https://hashnode.com/@kalpash816)

[Feb 25, 2023](https://hashnode.com/posts/shortest-js-program-window-this-keyword/63f9cfcf2b39599b570c6781/comment/63fa12c86022cc020bc64bc0)

Good one can also cover how this works inside function.

[haresh lakhwani](https://hashnode.com/@Haresh9958)

[Mar 11, 2023](https://hashnode.com/posts/shortest-js-program-window-this-keyword/63f9cfcf2b39599b570c6781/comment/63fa12c86022cc020bc64bc0#reply-640c84cde1ece738019bd09c)

Thanks Kalpash 😃
