Search⌘ K
AI Features

Exercise 1: Revocable Proxy

Explore how to implement a revocable proxy that directs method calls to a target object for a specified duration. Learn to create a proxy that can be disabled after 3 seconds and practice controlling dynamic object behavior using Reflect and Proxy APIs.

We'll cover the following...

Problem statement

Implement the createRevocableProxy() method in the following code to create a proxy that can be used for up to 3 seconds. During that time, any method calls on the proxy ...