js hides global variables.
function test(){
var a=b=123;
}
In this way, a is a local variable, but b is a global variable, which is beyond your expectation.
js hides global variables.
function test(){
var a=b=123;
}
In this way, a is a local variable, but b is a global variable, which is beyond your expectation.