クラス宣言は[[巻き上げ (JavaScript)|巻き上げ]]が発生しないので注意。つまり以下のコードはエラーになる。 ```js const r = new Rectangle(10, 10); class Rectangle { constructor(height, width) { this.height = height; this.width = width; } } ``` ```error const r = new Rectangle(10, 10); ^ ReferenceError: Cannot access 'Rectangle' before initialization ```