Functions

 

Take away from the class:
The return statement ends function execution and specifies a value to be returned to the function caller.

Rearranging code

Code1

Take away: groups of variables can be also rearranged

Code2

Take away: 
translate() comes before scale()

translate() is required to change the origin of the object to perform scale()