0
to create a constructor function
to create a constructor function
1 Antwort
+ 6
class Car {
constructor(color, brand) {
this.color = color;
this.brand = brand;
}
}
let car = new Car("black", "Mercedes");
to create a constructor function