> For the complete documentation index, see [llms.txt](https://lochiwei.gitbook.io/web/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://lochiwei.gitbook.io/web/js/grammar/statement/other/empty.md).

# empty statement

[JS](/web/js.md) ⟩ [statement](/web/js/grammar/statement.md) ⟩ [other](/web/js/grammar/statement/other.md) ⟩ empty

{% hint style="success" %}
([statement](/web/js/grammar/statement.md)) provide no statement, although the JS syntax would expect one.

```javascript
for(let i = 0; i < a.length; a[i++] = 0) /* empty */ ;
// in this case, loop body isn't needed ╰─────────────╯ <-- empty statement
```

{% endhint %}

{% tabs %}
{% tab title="📗 參考" %}

* [ ] [JavaScript: The Definitive Guide](/web/master/ref/javascript-the-definitive-guide.md) ⟩ Ch. 5 Statements
  {% endtab %}

{% tab title="📘 手冊" %}

* [ ] [Statements and declarations](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements) ⟩ [Others](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements#others) ⟩ [empty](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/Empty) ⭐️
  {% endtab %}
  {% endtabs %}
