function f1() { var a=1; f2(); }
function f2() { alert(a); }
f1();
function f1() {
var a=2;
function f2() {
alert(a);
}
f2();
}
f1();
Try it.
iOS Developer
function f1() { var a=1; f2(); }
function f2() { alert(a); }
f1();
function f1() {
var a=2;
function f2() {
alert(a);
}
f2();
}
f1();
haha
ReplyDeletethat's intrsting.
case 2 can alert a because f2 and a are both defined in f1?
fuck, need to input authentication code two times
ReplyDelete