JSFiddle - React, Tailwind, and code Playground
by Viet27th
JavaScript
let funcA = async function() {
try {
throw 'loi'
return 'ahi';
}
catch(er) {
throw er
}
}
funcA().then(result => {
console.log(result)
})
.catch(er => {
console.log('a' + er)
})