Consider the following code snippet. What will be the output?
class Vehicle {
constructor() {
this.type = 'vehicle';
}
static getType() {
return this.type;
}
}
class Car extends Vehicle {
constructor() {
super();
this.type = 'car';
}
}
const car = new Car();
console.log(car.type);
console.log(Car.getType());