Examining Scope
Run some JavaScript and interact with form to demonstrate Scope.
Global scope can be referenced anywhere
within the current document. This is discouraged.
Local scope means that a variable can only be referenced within the function where
it is declared.