Q31: What are Proxy and Reflect objects in JavaScript?

A Proxy object wraps a target object and intercepts fundamental operations (like property lookup, assignment, enumeration, function invocation) using trap handlers. Reflect provides built-in methods to perform default underlying JavaScript operations.

Key Takeaways
  • Proxies enable metaprogramming by trapping object operations.
  • Used heavily in reactivity systems (like Vue 3 reactivity).
Knowledge Check

Which Proxy trap intercepts property read access (e.g., obj.prop)?