Concept Flow - Then and catch methods
Start Promise
Promise Pending
Promise Resolved?
No→Promise Rejected?
Then callback
Continue chain
End
A promise starts pending, then either resolves or rejects. If resolved, the then() callback runs. If rejected, the catch() callback runs.
