Promises have three states:
1. Pending: This is an initial state of the Promise before an operation begins
2. Fulfilled: This state indicates that the specified operation was completed.
3. Rejected: This state indicates that the operation did not complete. In this case an error value will be thrown.
If you like this question & answer and want to contribute, then write your question & answer and email to freewebmentor[@]gmail.com. Your question and answer will appear on FreeWebMentor.com and help other developers.