When chaining Promises, returning a non-Promise value from a .then() handler will cause the next .then() in the chain to receive a Promise resolved with that ________.

  • Error
  • Value
  • Promise
  • Rejection
When you return a non-Promise value (a regular value) from a .then() handler, the next .then() in the chain will receive a Promise that is resolved with that value. This allows you to pass values between Promise chain steps.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *