Question #116

Author: admin
tags: JavaScript  
function x() {
  try {
    return 1;
  } catch(err) {
    return 2;
  } finally {
    return 3;
  }
}

const result = x();

console.log(result);
What will be printed to the console?
1
2
3
undefined
The finally block is always executed.
The return statement from finally block overrides the return statements from try or catch blocks.
Rate the difficulty of the question:
easyhard