JavaScript Proxy & Reflect API – Proxy & Reflect API In JavaScript

Question 1:  What is the main purpose of the Proxy object in JavaScript?

Question 2:  Which method of Reflect is used to set a property value on an object?

Question 3:  In Proxy traps, which trap is used to intercept reading a property value?

Question 4:  What does Reflect.deleteProperty do?

Question 5:  Which trap is triggered when checking if a property exists using the 'in' operator?

Question 6:  Which Reflect method works similar to Object.getOwnPropertyDescriptor?

Question 7:  In Proxy, which trap intercepts writing a property value?

Question 8:  Which Reflect method returns all property keys of an object including symbols?

Question 9:  The apply trap in Proxy is used for which type of target?

Question 10:  What does Reflect.has method do?

Leave a Reply