...

/

Manipulating Prototypes

Manipulating Prototypes

getting and setting prototypes of objects using the Reflect API

We'll cover the following...

We can get the prototype of an object using the Reflect API.

Press + to interact
let classOfMyAccount = Reflect.getPrototypeOf( myAccount );
console.log( classOfMyAccount.prototype === myAccount.prototype );

As you can see from the ...