Promises have two parameters, one for success (resolve) and one for failure (reject). Each has a condition that must be satisfied in order for the Promise to be resolved – otherwise, it will be rejected:
Mon Aug 15 2022 20:12:37 GMT+0000 (Coordinated Universal Time)
Saved by @EMR4HKLMN #javascript
https://www.freecodecamp.org/news/top-javascript-concepts-to-know-before-learning-react/
Comments