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

  • 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.

主站蜘蛛池模板: 浙江省| 沛县| 曲阳县| 雅安市| 城口县| 苍南县| 农安县| 绥棱县| 谢通门县| 德昌县| 阜南县| 沛县| 天峻县| 潮州市| 新泰市| 涡阳县| 重庆市| 县级市| 墨玉县| 勐海县| 晋州市| 衡阳市| 杭锦旗| 红河县| 乌拉特后旗| 崇信县| 清丰县| 景东| 通化县| 天门市| 桐城市| 抚远县| 明光市| 禹州市| 江北区| 微博| 原平市| 噶尔县| 和政县| 兴安县| 溧阳市|