Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
return new Promise((res, rej) => {
rej ("mistaken")
console.log("Nope :)")
res("hehe")
}).then(() => {
console.log("execution continued without problem")
}).catch(() => {
console.log("lol im a noob")
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment