What value does car1.brand have after executing the following code?
function Car(brand, model) {
this.brand = brand;
this.model = model;
}
const car1 = new Car('Toyota', 'Corolla');
What value does car1.brand have after executing the following code?
function Car(brand, model) {
this.brand = brand;
this.model = model;
}
const car1 = new Car('Toyota', 'Corolla');