← Glossary
Was this page helpful?
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." |
Can you put this sentence in the right order?
Tap the words to place them here
Keep building your technical English
You just looked up what this word means. Lingua-e turns vocabulary like this into full practice: fill-in-the-blanks, listening, and real developer conversations.
Practice this for free