JavaScript Professional — Hard
Key points
- The handler function only allows number assignments
- The code throws a TypeError when trying to assign a string
- The console.log statement is never reached
- Proxy handler enforces specific rules for property assignments
Ready to go further?
Related questions
