Operator Precedence and the invoke Operator

Learn about operator precedence and how to use the invoke operator to call objects like functions.

The invoke operator

Objects with the invoke operator can be called like functions, with parentheses () straight after the variable representing this object. Calling an object translates to the invoke method call with the same arguments.

Get hands-on with 1200+ tech skills courses.