- 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.
推薦閱讀
- jQuery Mobile Web Development Essentials(Third Edition)
- Mastering AWS Lambda
- AngularJS Testing Cookbook
- Swift 4 Protocol-Oriented Programming(Third Edition)
- Visual Basic 6.0程序設計實驗教程
- C語言程序設計簡明教程:Qt實戰(zhàn)
- Red Hat Enterprise Linux Troubleshooting Guide
- JSP程序設計實例教程(第2版)
- Python數(shù)據(jù)可視化之美:專業(yè)圖表繪制指南(全彩)
- Android移動應用開發(fā)項目教程
- 監(jiān)控的藝術:云原生時代的監(jiān)控框架
- Simulation for Data Science with R
- Julia High Performance(Second Edition)
- PHP項目開發(fā)全程實錄(第4版)
- C語言程序設計