Which promise method runs when the promise rejects?
Answer & explanation
Answer: .catch()
`.catch(handler)` handles rejection. `.finally()` runs after either fulfillment or rejection and does not receive the result.
Practice promises with self-contained questions. Check your answer, then use the explanation to understand the reasoning.
Answer: .catch()
`.catch(handler)` handles rejection. `.finally()` runs after either fulfillment or rejection and does not receive the result.