ES6 — Let’s talk about ECMAScript 2015
It’s my first story here and first about ECMAScript 2015 (called also ES6, codename: Harmony). I want to share with you some thoughts, snippets of code and tell you a little about the upcoming version of the ECMAScript standard. It’s my own road to know it before it will be a standard.
You might have noticed about ES6 a lot lately. This is because the standard is targeting ratification in June 2015.
See draft — ECMAScript 2015
ECMAScript 2015 is a significant update to the language. Previous (ES5) was standardized in 2009. Frameworks like AngularJS, Aurelia, ReactJS, Ionic start using it today.
ES6 includes a lot of new features:
- arrows
- classes
- enhanced object literals
- template strings
- destructuring
- default + rest + spread
- let + const
- iterators + for..of
- generators
- unicode
- modules
- module loaders
- map + set + weakmap + weakset
- proxies
- symbols
- subclassable built-ins
- promises
- math + number + string + object APIs
- binary and octal literals
- reflect api
- tail calls
I will try to describe each of these in the next stories, so stay updated.
Thanks to the use of transpilers (Babel, Traceur and others) we can actually use it right now until browsers fully catch up.
ES6 Repl in Chrome Devl Tools — Scratch JS
Start using it today ->
Future is bright.
Many people from the community denounced these words. I have only one to add: we can handle it easily!
Like it? Recommend it!
Whole series is also available as an ebook. I published it on leanpub.com
“Hello World!” ECMAScript 2015 (ES6)