---
title: "Discussion on \"JavaScript: Why Reflect APIs?\" | Hashnode"
description: "Discussion on \"JavaScript: Why Reflect APIs?\". In my  last post on Metaprogramming we had a high level look at the JavaScript(ES6) Proxy. In this post, we are going to discuss about JavaScript Reflect APIs, another inclusion in ES6.\nFirst thing first, What is Reflect?\nJust before we go to underst..."
url: "https://hashnode.com/posts/javascript-why-reflect-apis/5d0771e547ee4a9831ea8108"
---

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

Discussion

# [JavaScript: Why Reflect APIs?](https://blog.greenroots.info/javascript-why-reflect-apis?utm_source=hashnode&utm_medium=feed)

In my last post on Metaprogramming we had a high level look at the JavaScript(ES6) Proxy. In this post, we are going to discuss about JavaScript Reflect APIs, another inclusion in ES6. First thing first, What is Reflect? Just before we go to underst...

Jun 17, 2019 · blog.greenroots.info  
Read the article

-   [#javascript](https://hashnode.com/tag/javascript)
-   [#es6](https://hashnode.com/tag/es6)
-   [#webdev](https://hashnode.com/tag/webdev)
-   [#js](https://hashnode.com/tag/js)

## Written by

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

@atapas · Bangalore

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

Educator @tapaScript | Founder CreoWis & ReactPlay - Writer - YouTuber - Open Source

Co-Founder, @CreoWis | Teacher, @tapaScript | Founder, @ReactPlay | YouTuber | Writer | Human

## Responses 1

Markdown supported · ⌘↵ to post

[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.
