[单选题]分析下段代码输出结果是( )。<html><body><script type=text/javascript> (( ) => {let x, y;try {throw new Error( );} catch (x) {(x = 1), (y = 2);console.log(x);}console.log(x);console.log(y);})( );</script></body></html>
北开题库
|
2023-10-01 08:09:56
|
20
[单选题]分析下段代码输出结果是( )。<html><body><script type=text/javascript> (( ) => {let x, y;try {throw new Error( );} catch (x) {(x = 1), (y = 2);console.log(x);}console.log(x);console.log(y);})( );</script></body></html>

A.1undefined2
B.undefinedundefinedundefined
C.112
D.1undefinedundefined
查看答案

国家开放大学

形成性考核

您可能感兴趣的试题
TOP