1.let const Symbol
2.结构赋值 let {a,b,c}={a:1,b:2,c:3}; //let a=1 ,b=2 ,c=3
3.模板字符串 `${}`
4.对象简写 {data:data} ==> {data}
5.扩展运算符 ... [...arr1,...arr2]
6.默认参数 fun a(a,b=1)
7 for...of...
8.箭头函数 ()=>{}
9.promise
10.Import 和 export
11.rest
12.class
12.1 Proxy/Reflect
es7 es8
13.async await
14.includes
15.求幂运算符 ** 等同于 Math.pow()
16.Object.entries()
Object.entries({ one: 1, two: 2 }) //[['one', 1], ['two', 2]]
Object.entries([1, 2]) //[['0', 1], ['1', 2]]
17.Object.values()只返回自己的键值对中属性的值。它返回的数组顺序,也跟Object.entries()保持一致
18.Object.keys() 返回的是键名
19.字符串填充padStart()和padEnd()
20.Object.getOwnPropertyDescriptors()
21.函数参数支持尾部逗号
22.修饰器Decorator
@addSkill
class Person { }
function addSkill(target) {
target.say = "hello world";
}
23.私有属性 Class A{ name:'zhangsan' ,#age:18}
24.BigInt let a=123n;