var globalVariable1 = 0;
function test1() {
var localVariable1 = 2;
document.write(localVariable1+ "<br/>");
document.write(globalVariable1 + "<br/>");
document.write(localVariable1+ "<br/>");
}
document.write(test1.localVariable1);
document.write(globalVariable1 + "<br/>");
test1();
var globalVariable2 = 1;
function test2() {
var localVariable2 = 3;
document.write(localVariable2 + "<br/>");
}
document.write(test2.localVariable2 + "<br/>");
test2();
document.write(globalVariable1 + "<br/>");
console