JavaScript Consuming Promises
Advice
Use Async functions instead of this.
Syntax
promise
.then((value) => {
/* fulfillment */
})
.catch((error) => {
/* rejection */
})
Use Async functions instead of this.
promise
.then((value) => {
/* fulfillment */
})
.catch((error) => {
/* rejection */
})