sai_dive IL

学んだことのアウトプットブログ

【JavaScript】ES6 クラス

JavaScript】ES6 クラス

クラス
class クラス名 {
      constructor(){
      }
      メソッド名() {
      }
}

コンストラクター関数
function 関数名() {
                }
  
関数名.prototype.メソッド名 = function(){}