es6-promises Flashcards

1
Q

What are the three states a Promise can be in?

A

Pending, fulfilled and rejected.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

How do you handle the fulfillment of a Promise?

A

Using the “then” method and the callback.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

How do you handle the rejection of a Promise?

A

Using the “catch” method and the callback.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly