Skip to content
RED SAG Skills
mediumStudy question · answer published in JavaScript interview questions, so no pointsjavascripterrors

Return value with finally

What does this function return?

function f() {
  try {
    return "try"
  } finally {
    console.log("cleanup")
  }
}
console.log(f())
Choose one answer

Discussion 0

Join free to post in the discussion.

Related questions