---
title: "shubham (@shubham346) | Hashnode"
description: "this is cool. Read the latest articles by shubham on Hashnode."
url: "https://hashnode.com/@shubham346"
---

@shubham346

# shubham

@shubham346 · Joined April 2023

this is cool

## Comments

[i think you code look wrong in this part const obj = { name: "John Doe", myFunc() { printNmae: () => { console.log(this.name); } }, }; obj.printName() // '' you can't access the printNmae , for accessing the printNmae you have to return it. just do const obj={ name:"John Doe", myFunc(){ return { printNmae:()=>{console.log(this.name)} } } } obj.myFunc().printNmae();](https://hashnode.com/posts/javascript-deep-dive-into-the-this-keyword/6467f1877b8b42fe31319926/comment/6468696105373f00453b03a8)

Comment · Article · May 20, 2023 · [\[JavaScript\] Deep Dive into the THIS Keyword](https://hashnode.com/posts/javascript-deep-dive-into-the-this-keyword/6467f1877b8b42fe31319926)
