Design Patterns · Junior · Question 12 of 75

What is the Proxy pattern used for?

Explanation

A proxy has the same interface as the original and intercepts access: lazy initialization, caching, validation, logging. JS has a built-in Proxy - Vue 3's reactivity is built on it.

Further reading

Problem with a question

Design Patterns · Junior · question 12

Test yourself

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

Take this quiz