What does "return" mean in programming?
return is one of the most common terms in software development. This guide explains what it means, how it is used in practice, and why it matters, with real examples from the developer world.
Definition of return
The 'return' keyword exits a function and optionally sends a value back to the caller. Execution stops at the return statement and control passes back to where the function was called.
Example using return
"Use return to send a value back to the caller."
return Word Forms
| Form | Type | Meaning | Example |
|---|---|---|---|
| return | verb (infinitive) | To send a value back from a function to the caller | "The function should return the total price." |
| returned | past tense | Sent a value back from a function | "The API call returned a 200 status code." |
| returning | gerund | In the process of sending a value back | "Returning early from a function avoids deep nesting." |
Can you use "return" correctly in a real dev context?
Turn vocabulary into real practice
Lingua-e turns words like this into full practice: fill the gap, listen and repeat, and real developer conversations. Free.
Practice for free →No credit card needed
when two branches edit the same lines
The build failedbecause of a missing dependency.
What do you say when you're blocked?