Concept Flow - Promise catch for async errors
Start async operation
Promise created
Async operation succeeds?
No→Error thrown
Catch error
Resolve promise
Handle error
Then block runs
End
This flow shows how a Promise runs an async task, then either resolves successfully or catches errors to handle them.