Skip to content

Return Statement

Return statement is used to return a value from the function body to it's call. This is done using the return keyword. If no value is specified, null value is returned.

Syntax
return;
return expr;
Example
return;
return null;
return "Hello World";