Concept Flow - Creating promises
Start
Create new Promise
Executor function runs
Call resolve(value)
Promise fulfilled
Call reject(error)
Promise rejected
Promise settles (fulfilled or rejected)
Then or catch handlers run
End
This flow shows how a new Promise is created, the executor function runs, and either resolve or reject is called to settle the promise, triggering then or catch handlers.