---
title: "Discussion on \"Understanding `this` in JavaScript\" | Hashnode"
description: "Discussion on \"Understanding `this` in JavaScript\". In this blog I will be going through this tricky JS interview question which lot of people find confusing initially.Let's get started.  \n1. What will be the output of this?\nfunction Person(name) {\n  this.name = name;\n  this.getName = function () {\n  ..."
url: "https://hashnode.com/posts/understanding-this-in-javascript/66c17779e0acdf6392a09440"
---

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

Discussion

# [Understanding \`this\` in JavaScript](https://shbhuvnesh.hashnode.dev/understanding-this-in-javascript?utm_source=hashnode&utm_medium=feed)

In this blog I will be going through this tricky JS interview question which lot of people find confusing initially.Let's get started. 1. What will be the output of this? function Person(name) { this.name = name; this.getName = function () { ...

Aug 18, 2024 · 2 min read · shbhuvnesh.hashnode.dev  
Read the article

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

## Written by

[Bhuvnesh Sharma](https://hashnode.com/@bhuvnesh)

@bhuvnesh · Bangalore

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

Software Engineer | Front end developer

Frontend developer @Zepto

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
