profileRyan KesPGP keyI build stuffEmailGithubTwitterLast.fmMastodonMatrix

JavaScript Consuming Promises

Advice

Use Async functions instead of this.

Syntax

promise
  .then((value) => {
    /* fulfillment */
  })
  .catch((error) => {
    /* rejection */
  })

Related