---
description: 🚧 施工中
---

# statements that must end with ";"

[JS](../../../..) ⟩ [grammar](../../..) ⟩ [token](../..) ⟩ [semicolon]() ⟩ statements end with ";"

{% hint style="success" %}
some [statement](../../../statement "mention")s <mark style="color:red;">**must be terminated**</mark> with [](<> "mention") :

* `let`, `const`, variable statement
* `import`, `export`, module declaration
* [expr](../../../statement/expr "mention") statement
* `debugger`
* `continue`, `break`, `throw`
* [return](../../../statement/flow/jump/return "mention")
{% endhint %}

{% tabs %}
{% tab title="⭐️ 重點" %}
{% hint style="success" %}
these statements are affected by [automatic-semicolon-insertion](automatic-semicolon-insertion "mention") (<mark style="color:yellow;">**ASI**</mark>).
{% endhint %}
{% endtab %}

{% tab title="👥 相關" %}
* [return](../../../statement/flow/jump/return "mention") is affected by <mark style="color:purple;">**automatic semicolon insertion**</mark>.
{% endtab %}

{% tab title="📘 手冊" %}
* [ ] lexical grammar ⟩ [automatic semicolon insertion](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Lexical_grammar#automatic_semicolon_insertion)
{% endtab %}
{% endtabs %}
