官术网_书友最值得收藏!

Compatibility with older browsers

While ES6 works with almost all modern browsers, there are still many users who use older versions of Internet Explorer or Firefox. So, how are we going to make our application work for them? Well, the good thing about ES6 is that all it's new features can be implemented using the ES5 specification. This means that we can easily transpile our code to ES5, which will work on all modern browsers. For this purpose, we are going to use Babel: https://babeljs.io/, as the compiler for converting ES6 to ES5.

Remember how, in the beginning of our chapter, we installed Node.js in our system? Well, it's finally time to use it. Before we start compiling our code to ES5, we need to learn about Node and the npm.

主站蜘蛛池模板: 昌乐县| 深泽县| 泸定县| 台中市| 呼伦贝尔市| 岑巩县| 河南省| 宁安市| 滕州市| 英山县| 商洛市| 永兴县| 巢湖市| 东乌珠穆沁旗| 涟源市| 象山县| 左权县| 台江县| 乐山市| 陵川县| 新津县| 嘉祥县| 岐山县| 吉林省| 五常市| 南丹县| 巧家县| 金平| 双峰县| 双柏县| 阜平县| 彭泽县| 平湖市| 尤溪县| 千阳县| 玛纳斯县| 定陶县| 兰考县| 定南县| 互助| 大港区|