Answer:
Scope
Step-by-step explanation:
Variables can only be used inside the scope they are created in. The exception is global variables, which can be used anywhere.
You can use a variable in a function, but you have to pass it in through the method header:
var testVariable;
function DoSomething( var testVariable ) {
//testVariable can now be used in here as a copy
}