JavaScript · Senior · Question 8 of 75

What is Proxy used for?

Explanation

Traps such as get, set, has and deleteProperty let you implement reactivity (that's how Vue 3 works), validation, logging and default values. Reflect provides the default behavior of operations for use inside traps.

Further reading

Problem with a question

JavaScript · Senior · question 8

Test yourself

Take the JavaScript · Senior quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz