---
title: "Discussion on \"JavaScript - Understanding \"this\" with respect to different types of function invocation\" | Hashnode"
description: "Discussion on \"JavaScript - Understanding \"this\" with respect to different types of function invocation\". In this article, I will explain how this context is set. This context mostly depends on how the function is invoked rather than where it is defined. Function in javascript can be invoked in different ways. We will be taking it one by one and understa..."
url: "https://hashnode.com/posts/javascript-understanding-this-with-respect-to-different-types-of-function-invocation/6448f505ab9891630368fa06"
---

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

Discussion

# [JavaScript - Understanding "this" with respect to different types of function invocation](https://sahilpandith.hashnode.dev/javascript-understanding-this-with-respect-to-different-types-of-function-invocation?utm_source=hashnode&utm_medium=feed)

In this article, I will explain how this context is set. This context mostly depends on how the function is invoked rather than where it is defined. Function in javascript can be invoked in different ways. We will be taking it one by one and understa...

Apr 26, 2023 · 3 min read · sahilpandith.hashnode.dev  
Read the article

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

## Written by

[Sahil pandita](https://hashnode.com/@sahilpandith)

@sahilpandith · Pune

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

UI developer @ Nice

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
