This statement allows you to return a value from a function.
It is optional to add a return statement to a function - without one it is assumed that a "null" value is returned.
This will be interpreted as a numeric zero, a blank string or a null object, depending on the context.
You can also use return statement without a value to return from a function. In this case a "null" value is returned.
The statement has the following formats:
return expressionFor example:
return (x+5)/2;and
returnFor example:
return;