⬅️ Execute Program JavaScript Concurrency
Promise states
- A promise can be pending, fulfilled with a value, or rejected with a reason.
- Pending promises can become fulfilled or rejected.
- Once a promise is fulfilled or rejected, it stays in that state forever.
- 💡 avoid saying resolved when you actually mean fulfilled!