javascript:es6
文書の過去の版を表示しています。
ECMAScript 6th
Features
ECMA-262 6th editionで追加予定の仕様
- クラス定義文 / class definitions
- let修飾子とブロックスコープ変数 / block scope, let modifiers
- 分割代入 / destructuring assignment
- スプレッド演算子 / spread operator
- レストパラメータ / rest parameter
- デフォルトパラメータ / default parameter
- アロー関数 / arrow function
- イテレータとfor-ofループ / iterator and for-of statement
- ジェネレータ generator
- プロキシ proxy
- Map, Set, WeakMapオブジェクト
- 型付き配列 / typed array
クラス定義文
class Hoge { constructor(a) { this.a = a: } print() { console.log(this.a); } } var h = new Hoge("あ"); h.print();
javascript/es6.1388919406.txt.gz · 最終更新: 2014/01/05 10:56 by nullpon