black

国家开放大学(网站设计技术)

登录

单项选择题

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); })();打印的结果是()

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

单项选择题 模块化开发的基础是()

All Rights Reserved 版权所有©财会考试题库(ckkao.com)

备案号:湘ICP备2022003000号-2