---
description: 🚧 under construction
---

# associativity

[JS](../../..) ⟩ [statement](../../statement) ⟩ [expression](../../statement/expr) ⟩ [operator](..) ⟩ [term]() ⟩ associativity

{% hint style="success" %}
specifies the <mark style="color:yellow;">**order**</mark> in which operations of the <mark style="color:red;">**same**</mark>**&#x20;**<mark style="color:yellow;">**precedence**</mark> are performed.

```javascript
x * y * z === ((x * y) * z)    // L: left-to-right 
x = y = z === (x = (y = z))    // R: right-to-left 
```

:point\_right: [table-of-operators](../table-of-operators "mention")
{% endhint %}

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