Written by the Fiveable Content Team โข Last updated September 2025
Verified for the 2026 exam
Verified for the 2026 examโขWritten by the Fiveable Content Team โข Last updated September 2025
Definition
In computer programming, the return value is the output or result that a function or method gives back after it has been executed. It can be any data type, such as numbers, strings, booleans, or objects.
Related terms
Function: A block of code that performs a specific task and can have input parameters and return values.
Output: The information produced by a program or function that is displayed, saved, printed, etc.
Data type: A classification system used in programming languages to categorize different types of data (e.g., integer, string, boolean).