var scope="global"
function f(){
alert(scope)
 scope="local";
alert(scope);
}
f()

    var scope="global"
function f(){
alert(scope)
var scope="local";
alert(scope);
}
f()这两个函数调用为什么第一个输出是global local 第二个输出是undefined local