JSFiddle - React, Tailwind, and code Playground
JavaScript
console.clear()
new Promise((resolve, reject) => {
throw new Error(3)
})
.finally(() => {
console.log('finally')
})
.then(result => {
console.log('then', result)
})
.catch(err => {
console.log('catch', err)
})