Reflect.setPrototypeOf() Lab

Hard
15
1
46.8% Acceptance

In this lab, you will learn about Reflect.setPrototypeOf() method by implementing a couple of classes and changing the prototype of an object using this method.

The Reflect.setPrototypeOf() method is used for setting the prototype (i.e., the internal [[Prototype]] property) of a specified object to another object or to null. It returns a boolean indicating whether the prototype was successfully changed.

Complete the following challenges to pass the lab: