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

  • JavaScript by Example
  • Dani Akash S
  • 136字
  • 2021-07-02 18:39:08

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.

主站蜘蛛池模板: 丹凤县| 郓城县| 平阳县| 文登市| 游戏| 长顺县| 越西县| 桐庐县| 垣曲县| 永仁县| 凤山市| 胶州市| 枞阳县| 常宁市| 蓬安县| 娄烦县| 云龙县| 老河口市| 望城县| 滕州市| 新闻| 沭阳县| 同心县| 蒙阴县| 盐亭县| 弋阳县| 彭阳县| 南京市| 太仆寺旗| 阜新| 伊宁县| 辛集市| 昆山市| 周至县| 资阳市| 苏尼特右旗| 吕梁市| 偏关县| 边坝县| 张家口市| 三原县|