Summary

In this chapter, we learned what proxies are and how to use them. We saw the various traps available with examples. We also saw different rules that need to be followed by different traps. This chapter explained everything about the Proxy API in JavaScript in depth. Finally, we saw some use cases of proxies. In the next chapter, we will walk through object-oriented programming and the ES6 classes.

Get Learn ECMAScript - Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.