`f(args)` syntax.
Last updated 2 years ago
JS ⟩ statement ⟩ expression ⟩ invocation
(expression) use f(args) syntax to call a function/method.
f(args)
f ( args ) // f: expression, args: argument list f(0) // calls a function Math.max(x, y, z) // calls a method
method invocation
optional invocation ?.()
If that funcExpr is a property access expression, then the invocation is known as a method invocation.
funcExpr
property access and invocation expressions have higher precedence than any of the operators.
JavaScript: The Definitive Guide ⟩
4.5 Invocation Expressions
Ch. 8 Functions
Expressions and operators ⟩
parentheses () punctuators are used in this syntax.