Proxy and Reflect in Javascript | Part 2
In the previous post, we discussed Proxy in detail. In this post, we will build upon that knowledge and learn some more.

Reflect helps in the creation of Proxy and somewhat allow us to play with internal methods [[Get]]
and [[Set]]
. Below are some reflect methods:

Let us look at a code example:
Reflect allow us to call operators as functions also there is a reflect method for any proxy traps having the same name and arguments.
The Reflect methods work nicely with proxy to ensure that traps output and what we expected is the same. Following is an example:
We saw an example of how Reflect is useful for dealing with this Proxy gotcha. I always writereturn Reflect.get(…arguments);
😎. Reflect is awesome to enhance proxy and use it correctly. More on proxy on MDN.
Stay tuned for more articles.