---
title: "Comment by Sruthi on \"5 Rules to master ‘this’ in Javascript\" | Hashnode"
description: "const author = { awesome: &#x27;tushar&#x27; , print: function ( ) { console.log( this ); }, }; const reader = { awesome: &#x27;me&#x27; }; author.print. call ("
url: "https://hashnode.com/posts/5-rules-to-master-this-in-javascript/627b58dc983a4ab69ce9c093/comment/627ba14be525f1b677136a81"
---

[Discussion](https://hashnode.com/posts/5-rules-to-master-this-in-javascript/627b58dc983a4ab69ce9c093)

Comment [5 Rules to master ‘this’ in Javascript](https://hashnode.com/posts/5-rules-to-master-this-in-javascript/627b58dc983a4ab69ce9c093)

[Sruthi](https://hashnode.com/@sruthiragupathy)

[May 11, 2022](https://hashnode.com/posts/5-rules-to-master-this-in-javascript/627b58dc983a4ab69ce9c093/comment/627ba14be525f1b677136a81)

```
const author = {
 awesome: 'tushar',
 print: function() {
     console.log(this);
 },
};
const reader = { awesome: 'me' };

author.print.call(reader);  // { awesome: 'me' }
new author.print() // {}
```

-   Since the **print** method is invoked with **call** , **this** refers to the object that has been passed, i.e, the **reader** object
-   Since the **print** is invoked with **new** keyword, this is a **new empty object**

Well summed btw!!

[Tushar Tiwari](https://hashnode.com/@tushartiwari)

[May 11, 2022](https://hashnode.com/posts/5-rules-to-master-this-in-javascript/627b58dc983a4ab69ce9c093/comment/627ba14be525f1b677136a81#reply-627bc42de525f1b67713707a)

That's Awesome 💛 Thank you for the kind words [Sruthi](https://hashnode.com/@sruthiragupathy)
