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