Синтаксис конструктора класса
class Rectangle {
constructor(height, width) {
this.height = height;
this.width = width;
}
}
Poor Peacock
class Rectangle {
constructor(height, width) {
this.height = height;
this.width = width;
}
}