- ES5 2009:浏览器兼容性最好的版本。
- ES6 2015:箭头函数
() => {}、class关键字、模板字符串、析构、let/const、...rest/spread运算符(用于参数列表、数组初始化)、迭代器、协程generator、unicode、module、map/set、proxy、symbol、promise、tail calls、等等 - ES7 2016:Array
includes方法、幂运算符a ** b - ES8 2017:异步函数
async,memory 多线程共享数据 - ES9 2018:Rest/Spread 运算符(用于对象初始化)、异步迭代、
Object.values()/Object.entries()、String padding 补足字符、正则捕捉、promisefinally - ES10 2019:Array
flat/flatMap、ObjectfromEntries、Stringtrim去除前后空白字符、try catch允许不catch参数、FunctiontoString、Symbol.description、Well FormedJSON.Stringify()、Array 稳定排序、JSON 拓展