// 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);