Join Eve Porcello for an in-depth discussion in this video Using ES6 now, part of Learning ECMAScript 6.
- Because all of the browsers do not support…all ES6 features, all of our ES6 code should be transpiled.…Transpiling is the process of taking ES6 code…that we've written and converting it into ES5,…so it can be read by browsers.…We also use transpiling for languages…like CoffeeScript and TypeScript.…There are many different transpiling tools available.…The most popular is Babel, but we also have…Traceur, Closure, and many others.…If we go back to our compatibility chart,…you'll see a list of the compiler…and polyfill tools at the beginning.…
Notice that Babel is the one…that supports most of these features.…It's the column that's the most green.…Another thing you can do if you're just practicing…or doing some testing is you can try running…your ES6 code in Chrome Canary.…If you haven't downloaded Chrome Canary before,…this is the version of the Chrome browser…that's in development and contains the newest features.…It's not considered stable and it doesn't support all of ES6…but several of the ES6 features are supported…
- What is ECMAScript?
- Transpiling ECMAScript with Babel and Babel-node
- Using the let and const keywords
- Creating strings with template strings
- Enhancing object literals
- Working with ES6 classes and class inheritance
Skill Level Beginner
Q: The Babel API is out of date. How do I proceed with the course?
A: We are updating the course. In the meantime, you can install the babel-cli package and then install the presets that you need to follow along with the tutorials.