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

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.

主站蜘蛛池模板: 弋阳县| 高台县| 云霄县| 淮滨县| 奈曼旗| 丹棱县| 兴山县| 日土县| 蓬溪县| 楚雄市| 巴塘县| 卓尼县| 周至县| 湟源县| 杭锦后旗| 历史| 东台市| 长子县| 介休市| 偃师市| 元江| 大丰市| 鄂尔多斯市| 娄烦县| 建始县| 阿城市| 隆林| 娱乐| 贡嘎县| 呼伦贝尔市| 宜君县| 宜昌市| 青岛市| 临漳县| 敖汉旗| 伊金霍洛旗| 东宁县| 重庆市| 乌拉特前旗| 民丰县| 海城市|