Intermediate
JavaScript
Q49 / 100
What are Proxy and Reflect in ES6?
Correct! Well done.
Incorrect.
The correct answer is B) Proxy intercepts operations on objects via traps; Reflect provides methods that correspond to the interceptable operations
B
Correct Answer
Proxy intercepts operations on objects via traps; Reflect provides methods that correspond to the interceptable operations
Explanation
new Proxy(target, { get(t, k) { return Reflect.get(t, k); } }) intercepts property reads. Used for validation, logging, and reactive state.
Progress
49/100