JavaScript/Vue.js | ティア https://tiero.jp/magazine グローバル人材向けマガジン Mon, 14 Oct 2019 16:42:07 +0000 ja hourly 1 https://wordpress.org/?v=6.4.3 https://tiero.jp/magazine/wp-content/uploads/2019/02/cropped-cropped-favicon-32x32.png JavaScript/Vue.js | ティア https://tiero.jp/magazine 32 32 JavaScriptメモ:ES6 Class(承継)サンプルコード https://tiero.jp/magazine/javascript-es6-class/ Tue, 09 Jul 2019 18:42:21 +0000 http://tiero.jp/magazine/?p=2209 class Bags { constructor(options) { this.type = options.type; } discount(){ return "No discounts"; } } const b …

The post JavaScriptメモ:ES6 Class(承継)サンプルコード first appeared on ティア.]]>
class Bags { constructor(options) { this.type = options.type; } discount(){ return "No discounts"; } } const bags = new Bags({type: "raffia"}); bags bags.discount();

 

class Bags {
  constructor(options) {
    this.type = options.type;
  }
  discount(){
    return "No discounts";
  }

}


class Gnome extends Bags {
  constructor(options) {
    super(options);
    this.color = options.color;
  }
  country() {
    return "Singapore";

  }
}

const gnome = new Gnome({color: "red", type: "leather"});
gnome;
gnome.country();
gnome.discount();

 

 

 

 

The post JavaScriptメモ:ES6 Class(承継)サンプルコード first appeared on ティア.]]>
JavaScriptメモ:ES6 Destructuring – 分割代入のサンプルコード https://tiero.jp/magazine/javascript-es6-destructuring/ Tue, 09 Jul 2019 10:47:46 +0000 http://tiero.jp/magazine/?p=2196 関数の引数ver. 配列ver. 配列ver. オブジェクトの中の配列ver.

The post JavaScriptメモ:ES6 Destructuring – 分割代入のサンプルコード first appeared on ティア.]]>

関数の引数ver.

配列ver.

配列ver.

オブジェクトの中の配列ver.

The post JavaScriptメモ:ES6 Destructuring – 分割代入のサンプルコード first appeared on ティア.]]>
JavaScriptメモ:ES6 RESTのサンプルコード https://tiero.jp/magazine/javascript-es6-rest/ Tue, 09 Jul 2019 10:33:55 +0000 http://tiero.jp/magazine/?p=2194

The post JavaScriptメモ:ES6 RESTのサンプルコード first appeared on ティア.]]>
JavaScriptメモ:ES6 Spreadのサンプルコード https://tiero.jp/magazine/javascript-es6-spread/ Tue, 09 Jul 2019 10:15:10 +0000 http://tiero.jp/magazine/?p=2190

The post JavaScriptメモ:ES6 Spreadのサンプルコード first appeared on ティア.]]>
JavaScriptメモ:ES6 関数のデフォルト引数のサンプルコード https://tiero.jp/magazine/javascript-es6-default/ Tue, 09 Jul 2019 09:53:02 +0000 http://tiero.jp/magazine/?p=2184

The post JavaScriptメモ:ES6 関数のデフォルト引数のサンプルコード first appeared on ティア.]]>
JavaScriptメモ:ES6 オブジェクトリテラルのサンプルコード https://tiero.jp/magazine/javascript-es6-objectliteral/ Mon, 08 Jul 2019 10:19:45 +0000 http://tiero.jp/magazine/?p=2180

The post JavaScriptメモ:ES6 オブジェクトリテラルのサンプルコード first appeared on ティア.]]>
JavaScriptメモ:ES6 アロー関数のサンプルコード https://tiero.jp/magazine/javascript-es6-arrowfunc/ Sat, 06 Jul 2019 17:26:25 +0000 http://tiero.jp/magazine/?p=2174

The post JavaScriptメモ:ES6 アロー関数のサンプルコード first appeared on ティア.]]>
JavaScriptメモ:ES6 テンプレートリテラルのサンプルコード https://tiero.jp/magazine/javascript-es6-template/ Sat, 06 Jul 2019 16:53:19 +0000 http://tiero.jp/magazine/?p=2171

The post JavaScriptメモ:ES6 テンプレートリテラルのサンプルコード first appeared on ティア.]]>
JavaScriptメモ:ES6 reduce文のサンプルコード https://tiero.jp/magazine/javascript-es6-reduce/ Sat, 06 Jul 2019 16:29:32 +0000 http://tiero.jp/magazine/?p=2164

The post JavaScriptメモ:ES6 reduce文のサンプルコード first appeared on ティア.]]>
JavaScriptメモ:ES6 some文のサンプルコード https://tiero.jp/magazine/javascript-es6-some/ Sat, 06 Jul 2019 16:06:30 +0000 http://tiero.jp/magazine/?p=2162

The post JavaScriptメモ:ES6 some文のサンプルコード first appeared on ティア.]]>