FrontendInterviews.dev

650. Promise.resolve Thenable Assimilation

Easy•

Predict the output.

const thenable = {
  then(resolve) { resolve(42) }
}
Promise.resolve(thenable).then(console.log)

What is printed in the console?

Select an option and submit your answer.
Next Problem