Functions are lines of code stored to be used later to perform a specific task. Lines of put in can be called upon for use by use of its keyword.
Variables declared in function will only exisit within the function. It will still inherit variables declared outside the function. The function itself can be used as a variable.