Select all that apply. Which of the following is a benefit of using a promise when working with APIs in a Node App?

Question: Select all that apply. Which of the following is a benefit of using a promise when working with APIs in a Node App?

  • Promises allow you to run code asynchronously.
  • Promises make sure you only render the results once a value is returned.
  • Promises allow you to pass callbacks into a function.
  • Promises allow you to chain callbacks together.

The right answer was: Promises allow you to run code asynchronously. and Promises make sure you only render the results once a value is returned. and Promises allow you to chain callbacks together.

Leave a Comment