> 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/token/punctuator/comma.md).

# comma (,)

[JS](/web/js.md) ⟩ [grammar](/web/js/grammar.md) ⟩ [token](/web/js/grammar/token.md) ⟩ [punctuator](/web/js/grammar/token/punctuator.md) ⟩ comma (,)

{% tabs %}
{% tab title="🔴 主題" %}

* [comma operator (,)](/web/js/grammar/op/binary/comma-operator.md) - `a, b`
* [array literal](/web/js/val/builtin/arr/create/arr.md) - `[1, 2, 3]`.
* [object literal](/web/js/val/obj/create/obj.md) - `{x: 1, y: 2}`.
* [trailing comma](/web/js/grammar/token/literal/trailing-comma.md) - `[1, 2, 3,]`, `{x: 1, y: 2,}`.
* [variable declaration](/web/js/variable/declare.md) - `let a = 1, b = 2;`
  {% endtab %}
  {% endtabs %}
