// 宣言 class Rectangle { constructor(height, width) { this.height = height; this.width = width; } } // 式(クラスは無名だが、変数に代入される) const Rectangle = class { constructor(height, width) { this.height = height; this.width = width; } }; // 式(自分の名前を持つクラス) const Rectangle = class Rectangle2 { constructor(height, width) { this.height = height; this.width = width; } }; 関数式と同様に、クラス式も無名であったり、割り当てる変数とは異なる名前を持ったりすること

