JavaScript Promises states and rules
Promises states
A promise can be in 1 of 3 states:
Fulfilled: The resolve function was called.
Rejected: The reject function was called.
Pending: The resolve or reject functions were not called yet.
Settled: The promise is settled if it's not pendin...
arturcarvalho.hashnode.dev3 min read