class Car { constructor(name){ this.name = name; } getName(){ } } class Ferrari extends Car{ constructor(name){ super(name); } getName(){ } } let car = new Car(); let ferrari = new Ferrari(); console.log('Car.prototype',Car.prototype); // Object{} co…