Expressions
Function call expression
Evaluates the callable target and argument expressions, then invokes the target. A property call can supply its object as receiver. Calling a noncallable value throws TypeError.
Formal Syntax & Structure
javascript syntaxjavascript
callee(argument1, argument2)Parameters & Attributes
| Name | Type | Description |
|---|---|---|
| callee | callable | Function value to invoke. |
| arguments | expressions | Zero or more supplied values. |
Return Value
any
Result returned by the invoked function.
Working Example
Example Snippetjavascript
function square(n) { return n*n; }console.log(square(3));