Level: Intermediate to Advanced.
Part 1 – Welcoming ECMAScript 6
Why you should care?
Where are we now?
How to get ES6?
If you want to try ES6 in your browser, you have to turn it on as ES6 support is still considered experimental.
- For Microsoft Edge on Windows 10:
- For Chrome Canary:
- Or you can try the Firefox Nightly or Firefox Developer Edition
You can also try ES6 in Node.js or io.js, you just need to use –v8-options flag ONLY IF YOU’RE IN NODE <4.0.
node –v8-options | grep harmony
–harmony_typeof #(enable harmony semantics for typeof)
–harmony_scoping #(enable harmony block scoping)
–harmony_modules #(enable harmony modules (implies block scoping))
–harmony_proxies #(enable harmony proxies)
–harmony_collections #(enable harmony collections (sets, maps, and weak maps))
–harmony #(enable all harmony features (except typeof))
In the next parts of this tutorial series, I will be discussing different language features such as classes & modules, generators & iterators, block scoping, arrows, and more. I will also be sharing strategies for how best to manage a transition to ES6 either through transcompilation or using shims for different features. Stay tuned for the next edition!