JSFiddle - React, Tailwind, and code Playground
by pointzerotwo
JavaScript
Promise.resolve()
.then(() => { throw 'error' })
.catch((err) => { console.log('caught', err)})
.then(() => console.log('finally'));
by pointzerotwo
Promise.resolve()
.then(() => { throw 'error' })
.catch((err) => { console.log('caught', err)})
.then(() => console.log('finally'));