function SomeFunction()
{
//changing global variable
a = 20;
//local variable
var b = 20;
}
In this case, the local and global variables both have page scope. Even if
you place these variables into files, they only exist as long as the page is
accessed.