- JavaScript:Moving to ES2015
- Ved Antani Simon Timms Narayan Prusty
- 305字
- 2021-07-09 19:07:40
Chapter 7. ECMAScript 6
So far, we have taken a detailed tour of the JavaScript programming language. I am sure that you must have gained significant insight into the core of the language. What we saw so far was as per the ECMAScript 5 (ES5) standards. ECMAScript 6 (ES6) or ECMAScript 2015 (ES2015) is the latest version of the ECMAScript standard. This standard is evolving and the last round of modifications was done in June, 2015. ES2015 is significant in its scope and the recommendations of ES2015 are being implemented in most JavaScript engines. This is great news. ES6 introduces a huge number of features that add syntactic forms and helpers that enrich the language significantly. The pace at which ECMAScript standards keep evolving makes it a bit difficult for browsers and JavaScript engines to support new features. It is also a practical reality that most programmers have to write code that can be supported by older browsers. The notorious Internet Explorer 6 was once the most widely used browser in the world. To make sure that your code is compatible with the most number of browsers is a daunting task. So, while you want to jump to the next set of awesome ES6 features, you will have to consider the fact that several ES6 features may not be supported by the most popular of browsers or JavaScript frameworks.
This may look like a dire scenario, but things are not that dark. Node.js uses the latest version of the V8 engine that supports majority of ES6 features. Facebook's React also supports them. Mozilla Firefox and Google Chrome are two of the most used browsers today and they support a majority of ES6 features.
To avoid such pitfalls and unpredictability, certain solutions have been proposed. The most useful among these are polyfills/shims and transpilers.
- Visual C++程序設(shè)計教程
- Mastering Selenium WebDriver
- Java應(yīng)用開發(fā)與實踐
- Web Development with Django Cookbook
- Mastering Kotlin
- Expert Android Programming
- 正則表達(dá)式經(jīng)典實例(第2版)
- Ext JS 4 Web Application Development Cookbook
- 用戶體驗增長:數(shù)字化·智能化·綠色化
- 精通MATLAB(第3版)
- 組態(tài)軟件技術(shù)與應(yīng)用
- Unity UI Cookbook
- Angular開發(fā)入門與實戰(zhàn)
- Nagios Core Administration Cookbook(Second Edition)
- Scratch編程從入門到精通