---
title: "Discussion on \"What is 'this' in JavaScript\" | Hashnode"
description: "Discussion on \"What is 'this' in JavaScript\". If you are learning JavaScript or been into for a while, then you would have encountered a pretty tricky concept of JS. The concept of this.\nSo, let us explore together what does this means.\nIn JavaScript, this keyword refers to the object it belongs..."
url: "https://hashnode.com/posts/what-is-this-in-javascript/621f59b9aa0b9716581fa86b"
---

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

Discussion

# [What is 'this' in JavaScript](https://pranavbakale.hashnode.dev/what-is-this-in-javascript?utm_source=hashnode&utm_medium=feed)

If you are learning JavaScript or been into for a while, then you would have encountered a pretty tricky concept of JS. The concept of this. So, let us explore together what does this means. In JavaScript, this keyword refers to the object it belongs...

Mar 2, 2022 · 3 min read · pranavbakale.hashnode.dev  
Read the article

-   [#javascript](https://hashnode.com/tag/javascript)
-   [#reactjs](https://hashnode.com/tag/reactjs)
-   [#vanilla-js-1](https://hashnode.com/tag/vanilla-js-1)

## Written by

[Pranav Bakale](https://hashnode.com/@pranav1299)

@pranav1299 · India

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

I'm a Senior Frontend Developer. Exploring about Web, Next, React, JavaScript,etc

I'm a Senior Frontend Developer. I write about Web, Next, React, JavaScript, etc

## Responses 1

Markdown supported · ⌘↵ to post

[Sanjay Vyas](https://hashnode.com/@SanjayVyas)

[Mar 2, 2022](https://hashnode.com/posts/what-is-this-in-javascript/621f59b9aa0b9716581fa86b/comment/621fa2eaf1a32619afa39e90)

It differs in node.

this.count = 0; will not go to global dictionary, rather into the object for which the top level anonymous function is called.

console.log(global.count); // undefined console.log(this); // { count: 0 }

[Pranav Bakale](https://hashnode.com/@pranav1299)

[Mar 2, 2022](https://hashnode.com/posts/what-is-this-in-javascript/621f59b9aa0b9716581fa86b/comment/621fa2eaf1a32619afa39e90#reply-621fa45ef1a32619afa39efe)

Yes, it differs in node. Thank you so much for sharing this.
