Answers for "how to link prototypes in js using call method"

0

how to link prototypes in js using call method

// Linking both
// ElectricCar.prototype is what you want to link
// Car.prototype is where you want to link the ElectricCar.prototype.

ElectricCar.prototype = Object.create(Car.prototype);
Posted by: Guest on August-01-2021

Code answers related to "how to link prototypes in js using call method"

Code answers related to "Javascript"

Browse Popular Code Answers by Language