The return Statement part 1
Function Return
A function can have an optional return statement. It is used to return a value from the function.
This statement is useful when making calculations that require a result.
When JavaScript reaches a return statement, the function stops executing.
Comments
Post a Comment