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

Popular posts from this blog

Introducing object part 3

Comparison Operators part 2

Module 2