black

计算机程序设计综合练习

登录

单项选择题

执行下列代码,输出结果为()
var val = 12;function fun1(){ console. log(val); var val = 20; console.log(val);}fun1();

A.1220
B.1212
C.undefined 20
D.20undefined

相关考题

单项选择题 假设document是HTML文档中的一个节点,点击该节点后会发生什么?()function test() { this.flag = false; this.change = () => { this.flag = true; console.log(button.flag); };}const button = new test();document.addEventListener("click", button.change);

单项选择题 var name="World!";(function(){ var name; if(typeof name=== undefined){ name=Jack; console.log(Goodbye+name); } else{ console.log(hello+name); }})();请问执行后弹出的值是 ()

单项选择题 关于ES6的使用以下描述错误的是? ()

All Rights Reserved 版权所有©计算机考试题库(PPhuashu.com)

备案号:湘ICP备2020024380号-1