What does this log when a var inside a catch block has the same name as the catch parameter?
(function () {
try {
throw new Error("oops");
} catch (x) {
var x = 1, y = 2;
console.log(x);
}
console.log(x);
console.log(y);
})();
The answer
Work out every line it logs, in order. Then check.
Checking your sign-in…