ES6引入了很多新特性来方便JS。下面是ES6里面的一些常见新特性:
1. let、const
2. 解构赋值
3. 箭头函数
4. rest参数
5.扩展运算符
6.模板字符串
7. Promise
8. async和await
9. symbol和BigInt
10. 生成器
11. 函数参数默认值
12. Set和Map
13. ...