选择篇(046)-下面代码的输出是什么?
文章目录
(() => {
let x, y
try {
throw new Error()
} catch (x) {
(x = 1), (y = 2)
console.log(x)
}
console.log(x)
console.log(y)
})()- A:
1undefined2 - B:
undefinedundefinedundefined - C:
112 - D:
1undefinedundefined

评论
登录后参与技术讨论,分享你的经验与见解。
登录 / 注册暂无评论