JavaScript & Advanced ES6+ (0-to-Hero Big Tech Standard)
›
19. Metaprogramming with Proxy & Reflect API (Reactive State Engine)
50 mins
Course Syllabus
Interactive Lesson Studio
Loading lesson content...
🎯 Big Tech Coding & Interview Challenges
Practice these curated problems. Click "Load in Sandbox" to solve live in the Code Studio!
Medium
1. Observable State Engine with Proxy & Reflect
Build a `reactive(target, onChange)` function that returns a Proxy triggering `onChange(key, newVal)` whenever any property is updated.
💡 View Pro Interview Hint
• Use Reflect.set inside the proxy set trap.
JavaScript