- 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.
推薦閱讀
- JavaScript百煉成仙
- TypeScript入門與實(shí)戰(zhàn)
- 精通JavaScript+jQuery:100%動(dòng)態(tài)網(wǎng)頁設(shè)計(jì)密碼
- Android開發(fā)精要
- Learning Bayesian Models with R
- Linux命令行與shell腳本編程大全(第4版)
- Learning Zurb Foundation
- Android項(xiàng)目實(shí)戰(zhàn):手機(jī)安全衛(wèi)士開發(fā)案例解析
- Android移動(dòng)應(yīng)用項(xiàng)目化教程
- Building Business Websites with Squarespace 7(Second Edition)
- Python預(yù)測之美:數(shù)據(jù)分析與算法實(shí)戰(zhàn)(雙色)
- Test-Driven iOS Development with Swift
- 創(chuàng)新工場講AI課:從知識(shí)到實(shí)踐
- 3D Printing Designs:Design an SD Card Holder
- Appcelerator Titanium Smartphone App Development Cookbook