How?


#1

how do i take a variable out of the functional scope and put it into a global scope


#2

Variable in function scope:

function foo() {
    var local;
}

Variable in global scope:

var global;
function foo() {
    var local;
}

Note the difference in where the variables are declared.


#3

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.