Cool Features of ES6:-
- Promises: The thing that I am most excited about ES6 is the new Promises Support. Promises provide a mechanism to handle the results and errors from asynchronous operations. Until now, you need some external library like rsvp.js or q.js if you want to use promises.
There are many more cool features and I’ll try to get into each one of them during the course of this blog series.
- You’ll need to get a Transpiler set for ES6. I’ll be using babel. So install these things using npm like below.
- I have setup by directory structure like this.
Good, We are all set up. Just run gulp command, and Whatever you’ll write in ‘src’ folder will get transpiled.