---
title: "Discussion on \"Metaprogramming: An Introduction to JavaScript(ES6) Proxy\" | Hashnode"
description: "Discussion on \"Metaprogramming: An Introduction to JavaScript(ES6) Proxy\". The concept of Metaprogramming is not new. There are many programming languages like Lisp, Scala, Clojure, Rust, Haskell, etc already got the use of it. JavaScript is not really behind either! \nBefore we go any further, let us understand, What is Met..."
url: "https://hashnode.com/posts/metaprogramming-an-introduction-to-javascriptes6-proxy/5cf8f45a514aac6904345d41"
---

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

Discussion

# [Metaprogramming: An Introduction to JavaScript(ES6) Proxy](https://blog.greenroots.info/metaprogramming-an-introduction-to-javascriptes6-proxy?utm_source=hashnode&utm_medium=feed)

The concept of Metaprogramming is not new. There are many programming languages like Lisp, Scala, Clojure, Rust, Haskell, etc already got the use of it. JavaScript is not really behind either! Before we go any further, let us understand, What is Met...

Jun 6, 2019 · 5 min read · blog.greenroots.info  
Updated Oct 31, 2020  
Read the article

-   [#javascript](https://hashnode.com/tag/javascript)
-   [#web-development](https://hashnode.com/tag/web-development)
-   [#proxy](https://hashnode.com/tag/proxy)
-   [#es6](https://hashnode.com/tag/es6)

## 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 2

Markdown supported · ⌘↵ to post

[Thomas Crenn](https://hashnode.com/@totocrenn)

[Jun 13, 2019](https://hashnode.com/posts/metaprogramming-an-introduction-to-javascriptes6-proxy/5cf8f45a514aac6904345d41/comment/5d0202853d2fa4544b124c82)

Wow, thank you very much for introducing us to this subject, I had never heard of it! It looks very usefull and powerfull. After some research it seems that you would need to add the line `return Reflect.set(...arguments);` at your validator handler to make it really usable. Without it the property will never be initialized.

Thanks again and have a great day !

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

[Jun 13, 2019](https://hashnode.com/posts/metaprogramming-an-introduction-to-javascriptes6-proxy/5cf8f45a514aac6904345d41/comment/5d0202853d2fa4544b124c82#reply-5d02071bc58d616927458e75)

Thank you very much Thomas!

Yes you are right about the usage of reflect. I would suggest we see proxy along with the usage of Symbol and Reflect. I am cooking up something on it now. Shall post in next few days. Stay tuned! 👍

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

[Jun 30, 2019](https://hashnode.com/posts/metaprogramming-an-introduction-to-javascriptes6-proxy/5cf8f45a514aac6904345d41/comment/5d0202853d2fa4544b124c82#reply-5d18127bd60687c961471872)

Hi [Thomas Crenn](https://hashnode.com/@totocrenn),

Here is the post on _Reflect APIs_

[blog.greenroots.info/javascript-why-reflect-apis-…](https://blog.greenroots.info/javascript-why-reflect-apis-cjx09kad20006sos1pmumyn38)

[rjp](https://hashnode.com/@_rjp_)

[Jun 13, 2019](https://hashnode.com/posts/metaprogramming-an-introduction-to-javascriptes6-proxy/5cf8f45a514aac6904345d41/comment/5d01c5d709d9c30a7447a0d4)

Liked the article, [Tapas Adhikary](https://hashnode.com/@atapas). Very clear and concise. Just one nit - Mozilla Developer Network is styled as MDN, and not MSDN (which is Microsoft Developer Network)!

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

[Jun 13, 2019](https://hashnode.com/posts/metaprogramming-an-introduction-to-javascriptes6-proxy/5cf8f45a514aac6904345d41/comment/5d01c5d709d9c30a7447a0d4#reply-5d01c8209583e6b37599d332)

Point noted Sir! Corrected the typo. This gives me mega feeling of people reading the stories.😊😊😊

Thank You very much!
