Update javascript-promises.md

This commit is contained in:
Isabelle Viktoria Maciohsek
2022-01-10 18:49:02 +02:00
committed by GitHub
parent 6b5d661f44
commit b7c9f68ee3

View File

@ -19,7 +19,7 @@ fetch('https://my.api.com/items/1')
The tricky part about promises is understanding that the resulting value may not initially be available. Instead, the promise can be in one of three states:
- **Pending:** initial state, neither fulfilled nor rejected
- **Pending:** initial state, neither fulfilled nor rejected.
- **Fulfilled:** meaning that the operation was completed successfully.
- **Rejected:** meaning that the operation failed.