The output of a function is the "returned" value. When defining the function, we have to specify the type of values returned. A function can either return a single value or an array.
B. What does a function return?
The return type of a method indicates the type of value that the method sends back to the calling location
A method that does not return a value has a void return type. The return statement specifies the value that will be returned. For example,
C. Try: create a function to return the average values of an array