es6-promises Flashcards
1
Q
What are the three states a Promise can be in?
A
Peding, fulfilled, rejected
2
Q
How do you handle the fulfillment of a Promise?
A
through a call back function using prototype then
3
Q
How do you handle the rejection of a Promise?
A
using prototype catch on the promise object