cf.completefrontend

Predict the outputHard

What does this log when a var inside a catch block has the same name as the catch parameter?

What does this log?
(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…