---
title: "Comment by Krishnadas PC  on \"JavaScript: Why Reflect APIs?\" | Hashnode"
description: "What difference will it make if I use code like this? let logHandler = { get: function ( target, fieldName ) { console.log( &quot;Log: &quot; , target[fieldName"
url: "https://hashnode.com/posts/javascript-why-reflect-apis/5d0771e547ee4a9831ea8108/comment/639822f59c2b1a31cc398c2e"
---

[Discussion](https://hashnode.com/posts/javascript-why-reflect-apis/5d0771e547ee4a9831ea8108)

Comment [JavaScript: Why Reflect APIs?](https://hashnode.com/posts/javascript-why-reflect-apis/5d0771e547ee4a9831ea8108)

[Krishnadas PC](https://hashnode.com/@krishnadaspc)

[Dec 13, 2022](https://hashnode.com/posts/javascript-why-reflect-apis/5d0771e547ee4a9831ea8108/comment/639822f59c2b1a31cc398c2e)

What difference will it make if I use code like this?

```
let logHandler = {
    get: function(target, fieldName) {        
        console.log("Log: ", target[fieldName]);
        //return Reflect.get(target, fieldName);
        return target[fieldName]
    }
  };
```

[Tapas Adhikary](https://hashnode.com/@atapas)

[Dec 20, 2022](https://hashnode.com/posts/javascript-why-reflect-apis/5d0771e547ee4a9831ea8108/comment/639822f59c2b1a31cc398c2e#reply-63a12611a59cad9bdbba0797)

Hey [Krishnadas PC](https://hashnode.com/@krishnadaspc) , that will work exactly the same as shown in the example. The example used Reflect to show how Proxy and Reflect can be used together.

Thanks for putting your points.
