What is a Promise in JS?
A Promise in JS a value that is unknown now and may become known in future.
We need “promises” for asynchronous operations.
Promise has stages
Pending (upon creation)
Fulfill
Reject
On Fulfill ‘.then()’ is called and on Reject ‘.catch()’ is call...
rjlabs.hashnode.dev1 min read