black

JavaScript考试

登录

单项选择题

(() => {let x, y;try {throw new Error();} catch (x) {(x = 1), (y = 2);console.log(x);}console.log(x);console.log(y);})();以上代码运行结果为()

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

相关考题

单项选择题 JavaScript中的所有内容都是()

单项选择题 !!null;!!"";!!1; 以上三个表达式的输出结果分别为()

单项选择题 setInterval(() => console.log("Hi"), 1000);以上代码的返回值为()

All Rights Reserved 版权所有©在线考试题库网(zxkao.com)

备案号:湘ICP备14005140号-7

经营许可证号:湘B2-20140064