# ES6/ES7/ES8/ES9索引

## ES6

1. let const
2. 类 class
3. 箭头函数 arrow function
4. 函数参数默认值
5. 模板字符串
6. 解构赋值 destructing assignment
7. 模块化 module&#x20;
8. 扩展操作符 spread operator&#x20;
9. 对象简写
10. Promise
11. for ... of
12. Symbol
13. 迭代器 Iterator 与 生成器 generator
14. Set/WeakSet
15. Map/WeakMap
16. Proxy/Reflect
17. Regex
18. Math 对象的扩展
19. Array 对象的扩展
    1. Array.from
    2. Array.of
    3. Array.copyWithin
    4. Array.find
    5. Array.findIndex
    6. Array.fill
    7. Array.keys
    8. Array.values
    9. Array.entries
    10. Array `empty`

## ES7

1. Array.inclueds
2. 幂运算符 \*\*
3. 模板字符串

## ES8

1. async/await
2. Object.values
3. Object.entries
4. padStart
5. padEnd
6. ShareArrayBuffer
7. Atomics
8. Object.getOwnPropertyDescriptors

## ES9

1. for await ... of
2. ES6有数组扩展，ES9加入对象扩展
3. promise.finally

## ES10

1. Array.flat/ Array.flatMap
2. String.trimStart/trimLeft/trimEnd/tirmRight
3. Object.fromEntries
4. Symbol.prototype.description
5. String.matchAll
6. Function.toString
7. try catch 可以不带参数
8. Bigint
9. gloabalThis
10. 动态import
11. \#来表示私有元素和方法

## 参考

<https://juejin.im/post/5dfa5cb86fb9a0165721db1d>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://mm.ricky.moe/javascript/es6-1/es6es7es8es9-suo-yin.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
