以下代码运行后,结果为() fn1();var fn1 = function(a){alert(a);}
举一反三
- 以下代码运行后,结果为?fn1( );var fn1 = function(a) {alert(a);} A: 1 B: 程序报错 C: alert(1) D: undefine
- 下列代码运行后,结果为fn1();var fn1=function(a){alert(a)} A: 1 B: alert(1) C: 程序报错 D: undefined
- 下面代码的运行结果是:第一次弹 var a = 100; function fn1() { alert(a); var a = 10; } alert( fn1() );
- 下列代码的执行结果为|var fn = "hello";|fn();|function fn(){ |console.log("world")|}; A: "hello" B: "world" C: undefined D: fn is not function
- 下列代码的执行结果为( )。 var fn = “hello”; fn(); function fn(){ console.log(“world”)}; A: “hello” B: “world” C: undefined D: fn is not function