Javascript JS ES2015 - sinsunsan/archiref_wiki GitHub Wiki
ECMAScript 6, also known as ECMAScript 2015, is the latest version of the ECMAScript standard. ES6 is a significant update to the language, and the first update to the language since ES5 was standardized in 2009. Implementation of these features in major JavaScript engines is underway now.
- https://github.com/lukehoban/es6features
- http://kangax.github.io/compat-table/es6/
- https://babeljs.io/docs/learn-es2015 List on ES2015 new features
- http://jamesknelson.com/es6-the-bits-youll-actually-use/
New Features
Let & const (instead of var)
- Const a constant cannot be changed
- Let a variable but that don't do hoisting, than is trully block scoped
Read more :
Arrow function
- A new way more concise to declare function
- no function this context (no more that = this) ...
Read more :
Babel
To convert new code in old js and develop in ES6 now
- https://babeljs.io/docs/setup/#gulp
- http://jamesknelson.com/the-six-things-you-need-to-know-about-babel-6/