FrontendInterviews.dev

601. Promise Chain Execution Order

Easy•

Predict the console output.

Promise.resolve()
  .then(() => {
    console.log('A')
    return 'B'
  })
  .then((v) => console.log(v))

console.log('C')

What is printed in order?

Select an option and submit your answer.
Next Problem