> 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/expr/invoke/method-invocation.md).

# method invocation

calling a method.

[JS](/web/js.md) ⟩ [statement](/web/js/grammar/statement.md) ⟩ [expression](/web/js/grammar/statement/expr.md) ⟩ [invocation](/web/js/grammar/statement/expr/invoke.md) ⟩ method invocation

{% hint style="success" %}
&#x20;an [invocation expression：f()](/web/js/grammar/statement/expr/invoke.md) where the <mark style="color:blue;">`funcExpr`</mark> part is a [property access expression](/web/js/val/obj/prop/access/property-access-expression.md).

```javascript
propertyAccessExpr ( argumentList )    // syntax

    Math.max(x, y, z)    // method invocation
//  ╰──⭐️──╯  <------- accessing a property
```

{% endhint %}

{% tabs %}
{% tab title="👥 相關" %}
\*
{% endtab %}

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

* [ ] [JavaScript: The Definitive Guide](/web/master/ref/javascript-the-definitive-guide.md) ⟩&#x20;
  * [ ] 4.5 Invocation Expressions
  * [ ] Ch. 9
    {% endtab %}

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

* [ ] [Expressions and operators](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators) ⟩&#x20;
  {% endtab %}
  {% endtabs %}
