Allows you to define variables whose values will be constant and cannot be changed.
- Block Scoped Variables & Function
Variable/functions scopes will now be within the block where they have been defined.
- Arrow Function
Pretty similar to Lamba expressions in C#. A more expressive closure syntax
- Template Strings
Ability to modularize your code through different module.
Complete specification of eS6 can be read here.
ES6 support in Microsoft Edge:
EDGE Score on ES6 Compat Chart
Features ready to use are arrow functions, enhanced object literals, template strings, rest parameters, let & const support, proxies, symbols, iterators, Typed Arrays, Map, Set, WeakMap, WeakSet, new methods on String, Array, Number, Object & Math.
Experimental ES6 features in Microsoft Edge:
ES6 Roadmap for Microsoft Edge:
Microsoft Edge scores high on the ES6 compat chart as seen above and the score is sure to increase in due course of time. Microsoft has an official status site where one can find out what’s supported out of the box in Edge and what is planned as a roadmap. You can access the site here. Technical Committee or TC as they are called as, have embarked on a cadence or release cycle of Yearly mode for ES specifications. What this means is TC will now meet and publish the specification yearly and this matches the release cadence of Edge.
Using ES6 in Production:
We are all excited about the way Modern Web is shaping up. So rush to get a free assessment of your website and see you on the other side.