Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Promise.resolve(0)
- .then(divisor => 10 / divisor) // divide by 0!
- .then(value => value * 5) // skipped
- .catch(() => Infinity) // recover from error
- .then(result => console.log(result)) // result -> Infinity
Add Comment
Please, Sign In to add comment