---
title: "Discussion on \"Decoding the elusive 'this' in Javascript\" | Hashnode"
description: "Discussion on \"Decoding the elusive 'this' in Javascript\". Get a better understanding of the \"this\" keyword in Javascript"
url: "https://hashnode.com/posts/decoding-the-elusive-this-in-javascript/606857751ed1783ab0632ce9"
---

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

Discussion

# [Decoding the elusive 'this' in Javascript](https://nehabharati.hashnode.dev/decoding-the-elusive-this-in-javascript?utm_source=hashnode&utm_medium=feed)

Get a better understanding of the "this" keyword in Javascript

Apr 3, 2021 · 3 min read · nehabharati.hashnode.dev  
Read the article

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

## Written by

[Neha Bharati](https://hashnode.com/@nehabharati)

@nehabharati

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

Web Developer

## Responses 1

Markdown supported · ⌘↵ to post

[cedric simon](https://hashnode.com/@Simonced)

[Apr 4, 2021](https://hashnode.com/posts/decoding-the-elusive-this-in-javascript/606857751ed1783ab0632ce9/comment/606957a81ed1783ab063392c)

In your second sample, the `grow` method, shouldn't it be declared like `grow:function()`? Maybe it's a syntax I am not aware of...

[Neha Bharati](https://hashnode.com/@nehabharati)

[Apr 4, 2021](https://hashnode.com/posts/decoding-the-elusive-this-in-javascript/606857751ed1783ab0632ce9/comment/606957a81ed1783ab063392c#reply-60696c4b1ed1783ab0633a18)

Yes that's the shorthand for declaring a method. You can define it either way.
