官术网_书友最值得收藏!

Improvements in ES6

The ECMAScript committee, which defines the specification for the JavaScript language itself, released a new specification called ECMAScript 6/ECMAScript 2015 in June 2015. The new standard, called ES6 for short, was a major revision of the JavaScript programming language and added a number of new paradigms intended to make development of JavaScript programs easier.

While ECMAScript defines the specification for the JavaScript language, the actual implementation of the language is dependent on the browser vendors and the maintainers of the various JavaScript engines. ES6 by itself is only a guideline, and because the browser vendors each have their own timeline for implementing new language features, the JavaScript language and the JavaScript implementations perged slightly. Features defined by ES6, such as classes, were not available in the major browsers, but developers wanted to use them anyway.

Enter Babel, the JavaScript transpiler. Babel can read and parse different JavaScript flavors (such as ES6, ES7, ES8, and React JSX) and convert it or compile it into browser-standard ES5. Even today, the entirety of ES6 has not yet been implemented by the browser vendors, so Babel remains an essential tool for developers wishing to write ES6 code.

The examples in this book will use ES6. If you're not yet familiar with the newer syntax, here are a few of the major features you'll see used throughout this book.

主站蜘蛛池模板: 鄂伦春自治旗| 城市| 嘉祥县| 琼海市| 疏附县| 页游| 龙南县| 剑河县| 乐安县| 宣汉县| 民丰县| 阜平县| 建阳市| 双柏县| 兴安盟| 吉首市| 正阳县| 永新县| 凤冈县| 陆丰市| 临沂市| 霍山县| 延吉市| 湘潭县| 台山市| 洞头县| 左云县| 和硕县| 郁南县| 东海县| 阿拉善盟| 平利县| 河北省| 定日县| 白朗县| 垦利县| 通榆县| 洛隆县| 泰安市| 景谷| 余江县|