Variables are like a box that can hold values. The steps to using variables are to first define it to a certain type such as Boolean, string, or integer and using suggested naming conventions. Secondly, variables must be initialized to a start value, and to assign it to a variable type. You use the var to declare a variable.
Functions and Return Values
Think of a function like assigning a task. A return value is giving you the completed work. This allows you to write functions that do some work for you and send back the result. Parameters are like inputs into the function, and the return value is output.
Check out some other programs
Play around with the code