エントリーの編集
エントリーの編集は全ユーザーに共通の機能です。
必ずガイドラインを一読の上ご利用ください。
記事へのコメント1件
- 注目コメント
- 新着コメント
注目コメント算出アルゴリズムの一部にLINEヤフー株式会社の「建設的コメント順位付けモデルAPI」を使用しています
- バナー広告なし
- ミュート機能あり
- ダークモード搭載
関連記事
クラス - JavaScript | MDN
// 宣言 class Rectangle { constructor(height, width) { this.height = height; this.width = width; ... // 宣言 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; } }; 関数式と同様に、クラス式も無名であったり、割り当てる変数とは異なる名前を持ったりすること



2018/08/09 リンク