---
title: "Discussion on \"The puzzle behind \"this\" keyword\" | Hashnode"
description: "Discussion on \"The puzzle behind \"this\" keyword\". Why we need \"this\" for?\nThe keyword \"this\" allows a function to be reused. It informs the function of the context in which it should run. As a result, the \"this\" keyword in javascript always refers to an object. So we might communicate the function w..."
url: "https://hashnode.com/posts/the-puzzle-behind-this-keyword/6272df6a272fe72a917cd8a5"
---

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

Discussion

# [The puzzle behind "this" keyword](https://mohammedsas.hashnode.dev/the-puzzle-behind-this-keyword?utm_source=hashnode&utm_medium=feed)

Why we need "this" for? The keyword "this" allows a function to be reused. It informs the function of the context in which it should run. As a result, the "this" keyword in javascript always refers to an object. So we might communicate the function w...

May 4, 2022 · 4 min read · mohammedsas.hashnode.dev  
Read the article

-   [#javascript](https://hashnode.com/tag/javascript)
-   [#web-development](https://hashnode.com/tag/web-development)
-   [#frontend-development](https://hashnode.com/tag/frontend-development)

## Written by

[Mohammed Ashraf](https://hashnode.com/@mohammedsas)

@mohammedsas

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

## Responses 1

Markdown supported · ⌘↵ to post

[Prathmesh Jagtap](https://hashnode.com/@Prathmesh)

[Jun 8, 2022](https://hashnode.com/posts/the-puzzle-behind-this-keyword/6272df6a272fe72a917cd8a5/comment/62a0324e7c635062889383dc)

Great blog, explained well
