FrontendInterviews.dev

618. Promise finally Return Value

Easy•

Predict the output.

Promise.resolve('A')
  .finally(() => 'B')
  .then(console.log)

What is the correct output/behavior?

Select an option and submit your answer.
Next Problem