Return statement

The return() statement immediately ends execution of the current function and returns its argument as the value of the function call. The return type must exactly match the datatype as given in the function definition.

A function can have any number of return statements.

return