Functions and Return values
This lesson discusses functions, return values, named results and signature
We'll cover the following
Functions
When declaring functions, the type comes after the variable name in the inputs.
The return type(s) are then specified after the function name and inputs, before writing the definition. Functions can be defined to return any number of values and each of them are put here.
Given below is an example function definition:
Get hands-on with 1400+ tech skills courses.