return statement

noun
UK /rɪˈtɜːn ˈsteɪtmənt/
US /rɪˈtɝːn ˈsteɪtmənt/

A return statement is a line of code that sends a value back from a function.

The function uses a return statement to give back the answer.


OTHER MEANINGS

2. In some languages, a return statement can also end a function early without sending a value.

The return statement stopped the loop right away.

3. A written message that officially gives something back to its owner.

The shop sent a return statement for the broken toy.

4. A formal report that shows information back to a person or group.

The bank mailed a return statement about the account.