try {
  let x = u;
  let y = x + 2;
  console.log(y);
} catch (e) {
  console.log(e.message + "\n" + e.name + "\n" + e.toString());
} finally {
  console.log("Lorem ipsum");
}

Abra o console do navegador.