- 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.
推薦閱讀
- Python數(shù)據(jù)分析基礎
- Python自然語言處理(微課版)
- C語言從入門到精通(第4版)
- Learning Laravel 4 Application Development
- Oracle JDeveloper 11gR2 Cookbook
- Go并發(fā)編程實戰(zhàn)
- Visual C++開發(fā)入行真功夫
- Visual Basic程序設計
- Internet of Things with ESP8266
- Android傳感器開發(fā)與智能設備案例實戰(zhàn)
- .NET 4.5 Parallel Extensions Cookbook
- Go語言開發(fā)實戰(zhàn)(慕課版)
- Java7程序設計入門經典
- 30天學通C#項目案例開發(fā)
- 嵌入式C編程實戰(zhàn)