# branch

[JS](../../..) ⟩ [statement](..) ⟩ [control flow]() ⟩ branch

{% hint style="success" %}
* one/two-way branch： [if](branch/if "mention")
* multiway branch： [switch](branch/switch "mention")

:u6307: <mark style="color:yellow;">**synonyms**</mark>： "<mark style="color:purple;">**conditionals**</mark>", "<mark style="color:purple;">**branches**</mark>"
{% endhint %}

{% tabs %}
{% tab title="🔴 主題" %}
* [if](branch/if "mention")
* [switch](branch/switch "mention")
{% endtab %}

{% tab title="📗 參考" %}
* [javascript-the-definitive-guide](../../../../master/ref/javascript-the-definitive-guide "mention") ⟩ 5.3 Conditionals
{% endtab %}
{% endtabs %}
