Return Statement

A return statement returns the given value to the function caller.

Structure

ReturnStmt = 'return' Expression?

Example

return
return 5
return x

References