---
title: "Discussion on \"Javascript Interview Questions ( 'this' Keyword ) - Output Based, Scope, Implicit Binding, etc\" | Hashnode"
description: "Discussion on \"Javascript Interview Questions ( 'this' Keyword ) - Output Based, Scope, Implicit Binding, etc\". this keyword in javascript is arguably one the most confusing topics ever, which sometimes makes even senior developers scratch their heads. ] And that is why this is one the most important topics for Javascript interviews because it allows interview..."
url: "https://hashnode.com/posts/javascript-interview-questions-this-keyword-output-based-scope-implicit-binding-etc/62c1bd1dc0401b3dcbcfab25"
---

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

Discussion

# [Javascript Interview Questions ( 'this' Keyword ) - Output Based, Scope, Implicit Binding, etc](https://roadsidecoder.hashnode.dev/javascript-interview-questions-this-keyword-output-based-scope-implicit-binding-etc?utm_source=hashnode&utm_medium=feed)

this keyword in javascript is arguably one the most confusing topics ever, which sometimes makes even senior developers scratch their heads. \] And that is why this is one the most important topics for Javascript interviews because it allows interview...

Jul 3, 2022 · 7 min read · roadsidecoder.hashnode.dev  
Updated Jan 11, 2023  
Read the article

-   [#javascript](https://hashnode.com/tag/javascript)
-   [#technical-interview](https://hashnode.com/tag/technical-interview)
-   [#this](https://hashnode.com/tag/this)
-   [#reactjs](https://hashnode.com/tag/reactjs)
-   [#interview](https://hashnode.com/tag/interview)

## Written by

[Roadside Coder](https://hashnode.com/@RoadsideCoder)

@RoadsideCoder

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

App Development Tutorials

## Responses 6

Markdown supported · ⌘↵ to post

[AKASH PATEL](https://hashnode.com/@patelakash4568)

[Dec 10, 2025](https://hashnode.com/posts/javascript-interview-questions-this-keyword-output-based-scope-implicit-binding-etc/62c1bd1dc0401b3dcbcfab25/comment/69390d10bb38468a5967d225)

Excellent

[Guna G](https://hashnode.com/@gunag)

[Apr 8, 2024](https://hashnode.com/posts/javascript-interview-questions-this-keyword-output-based-scope-implicit-binding-etc/62c1bd1dc0401b3dcbcfab25/comment/661408258f1f7673791ca934)

nice one

[Gopi Bollepalli](https://hashnode.com/@gopi111)

[Sep 19, 2023](https://hashnode.com/posts/javascript-interview-questions-this-keyword-output-based-scope-implicit-binding-etc/62c1bd1dc0401b3dcbcfab25/comment/6509344b81a2ec0e086bc8c5)

Awesome blog

[Jawad Jisan](https://hashnode.com/@JawadJisan)

[Feb 8, 2023](https://hashnode.com/posts/javascript-interview-questions-this-keyword-output-based-scope-implicit-binding-etc/62c1bd1dc0401b3dcbcfab25/comment/63e3e784b3f7abe2f246f111)

00

[Dimple Kumari](https://hashnode.com/@dimple2802)

[Sep 4, 2022](https://hashnode.com/posts/javascript-interview-questions-this-keyword-output-based-scope-implicit-binding-etc/62c1bd1dc0401b3dcbcfab25/comment/6314b28cd49bb9d8c2f76b50)

Q3.) function makeUser() { return { name: "John", ref: this }; }

let user = makeUser();

alert( user.ref.name )

**output will not be an error. It will return an empty string. As window object has a name property and its value is an empty string**

let user={ name:'john', ref:this } console.log(user.name)->john console.log(user.ref)->window object console.log(user.ref.name)->empty string

[Ankush Ladani](https://hashnode.com/@AnkushLadani)

[Jul 19, 2022](https://hashnode.com/posts/javascript-interview-questions-this-keyword-output-based-scope-implicit-binding-etc/62c1bd1dc0401b3dcbcfab25/comment/62d61c803060d03288d9bcbc)

Thank you so much for such an amazing content.
