注册一亩三分地论坛,查看更多干货!
您需要 登录 才可以下载或查看附件。没有帐号?注册账号 
x
Consider the following code. What will the output be, and why?
(function () {
try {
throw new Error();
} catch (x) {
var x = 1, y = 2;
consoleone y, which is in the outer scope
console.log(x /* inner */);
}
console.log(x);
console.log(y);
})();
|