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
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
"function add(a: number, b: number): number { return a + b; }"
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." |
Related terms
Ready to practice your English at work?
Lingua-e has interactive exercises built around real developer conversations: standups, code reviews, retrospectives, and more. Practice until it comes naturally.
Try Lingua-e for free