---
description: 🚧 under construction
---

# Symbol.iterator

[JS](../../..) ⟩ [value](../..) ⟩ [primitive](..) ⟩ [symbol]() ⟩ Symbol.iterator&#x20;

{% hint style="success" %}
<mark style="color:yellow;">**\[**</mark><mark style="color:purple;">**Symbol.iterator**</mark><mark style="color:yellow;">**]\()**</mark> method is <mark style="color:yellow;">**required**</mark> to make an object [**iterable**](../../../iteration/iterable).&#x20;

```javascript
// code
```
{% endhint %}

{% tabs %}
{% tab title="👥 相關" %}
* [iterable](../../../iteration/iterable "mention")
* <mark style="color:purple;">**Symbols**</mark> can (only) be used as [**computed property names**](../../obj/prop/name/computed).
* [obj](../../obj/create/obj "mention")
{% endtab %}

{% tab title="📗 參考" %}
* [ ] [javascript-the-definitive-guide](../../../../master/ref/javascript-the-definitive-guide "mention") ⟩&#x20;
  * [ ] 6.10.3 Symbols as Property Names
  * [ ] 12 Iterators & Generators
{% endtab %}

{% tab title="📘 手冊" %}
* [Symbol](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Symbol)
{% endtab %}
{% endtabs %}
