4.2. Return Values

A function doesn't always have to display its output directly. It can process some data and then return it in a variable or something else. The return statement takes a value from inside a function and sends it back to the line that called the function. Let's see some examples.