return

Specifies the value to be returned by a function.

Syntax

return expression

Parameters

Parameter Description
expression The expression to return.

Examples

The following function returns the square of its argument, x, where x is a number.

Enter labels to add to this page:
Please wait 
Looking for a label? Just start typing.