- 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.
推薦閱讀
- Spring技術內幕:深入解析Spring架構與設計
- Mastering Objectoriented Python
- Android 9 Development Cookbook(Third Edition)
- Android Application Development Cookbook(Second Edition)
- Web全棧工程師的自我修養
- 人人都懂設計模式:從生活中領悟設計模式(Python實現)
- 名師講壇:Spring實戰開發(Redis+SpringDataJPA+SpringMVC+SpringSecurity)
- 零基礎趣學C語言
- INSTANT Adobe Edge Inspect Starter
- Building Wireless Sensor Networks Using Arduino
- 編程可以很簡單
- Clojure for Java Developers
- Clojure High Performance Programming(Second Edition)
- Node.js實戰:分布式系統中的后端服務開發
- JavaScript前端開發基礎教程