...

/

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
Node.js
let classOfMyAccount = Reflect.getPrototypeOf( myAccount );
console.log( classOfMyAccount.prototype === myAccount.prototype );

As you can see from the example, this prototype is ...