单项选择题

function test() {
console.log(a);
console.log(fun());
var a = 1;
function fun() {
return 2;
}
}
test();结果是()

A.undefined 2
B.2 undefined
C.undefined
D.2

<上一题 目录 下一题>
热门 试题

单项选择题
(function() { console.log(3); setTimeout(function(){console.log(2)}, 2000); setTimeout(function(){console.log(1)}, 0); console.log(4); })();打印的结果是()

A.1 2 3 4
B.2 1 3 4
C.4 3 1 2
D.3 4 1 2

单项选择题
var str = str; function fun1(){ str = fun1; } function fun2(){ str = fun2; } console.log(str); fun1(); console.log(str); fun2();以上打印的结果是()

A.str fun2
B.str fun1
C.fun1 fun2
D.fun2 fun1

相关试题
  • 在FrontPage 中设置网页背景.如果先设置...
  • 为了让更多的人了解企业的形象和产品,选择...
  • 制作网站前的一个重要环节是()。
  • 在FrontPage 中,对于表格的处理,下列说...
  • 在FrontPage 中改变表格边框的粗细,可以...