Reflect.setPrototypeOf Lab

Hard
1
1
41.7% Acceptance

In this lab, you will demonstrate the use of Reflect.setPrototypeOf() to change the prototype of a JavaScript class. You will create two classes - Base and Derived - and learn how to use Reflect.setPrototypeOf() to set the Base class as the prototype of the Derived class.

The Reflect.setPrototypeOf() method is used to set the prototype of an object (i.e., the internal [[Prototype]] property). This is the same operation as setting the __proto__ property via assignment. In this lab, you will have a chance to test it out by yourself.