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.
Declared outside any procedures
Declared inside a procedure
Declared outside and used inside a procedure