Reflect.setPrototypeOf() lab
Medium
5
63.6% Acceptance
In this lab, you have to use Reflect.setPrototypeOf() method to set the prototype of an object targetObj
to another object prototypeObj
. Reflect.setPrototypeOf() returns a boolean value indicating whether the prototype was successfully set. After that, you will verify that prototype of targetObj
is set to 'prototypeObj' using the Reflect.getPrototypeOf()
method. Let's begin!