Question 16
Consider the following JavaScript program:
class Vehicle { constructor(brand) { this.brand = brand; } start() { console.log(`${this.brand} vehicle is starting`); } getInfo() { return `This is a ${this.brand} vehicle`; }}
class Car extends Vehicle { constructor(brand, model) { super(brand); this.model = model; } start() { console.log(`${this.brand} ${this.model} engine started`); }}const myCar = new Car('Toyota', 'Camry');myCar.start();console.log(myCar.getInfo());console.log(myCar instanceof Car);console.log(myCar instanceof Vehicle);console.log(Car.prototype.__proto__ === Vehicle.prototype);What will be the output of the above program on a browsers console?