Select all that apply. Which of the following is a benefit of using a promise when working with APIs in a Node App?
Choose an answer
Tap an option to check your answer.
Correct answer: Promises allow you to run code asynchronously., Promises make sure you only render the results once a value is returned., Promises allow you to chain callbacks together..
Why this is the answer
A Promise helps a Node app handle API work that finishes later, such as waiting for a response from a server. It supports asynchronous execution so the app does not need to block while the API request completes. Promises also help control rendering because results can be used only after the returned value is available. Promise chaining lets related steps run in order, such as making a request, processing the response, and handling errors. This makes API code easier to manage than deeply nested callback patterns.
Pass your exam — without the endless answer hunt
Get every verified question and explanation for this exam in one place, and save hours of prep. 1,000+ certifications · 20+ languages · free to start.
Pass your exam faster → No card needed