๐Ÿ“˜

Return Value

The answer a function hands back.

๐Ÿ˜Š In simple words

The answer a function hands back.

๐ŸŽ“ Technical definition

The value produced by a function and passed back to the point where it was called, using RETURN.

Pseudocode example
1FUNCTION DOUBLE(X)2    RETURN X * 23END FUNCTION4SET Y = DOUBLE(5)

๐ŸŽ Real-world analogy

The smoothie that comes out of the blender.

๐Ÿ”— Related concepts

โ† Whole glossary