Guest User

Untitled

a guest
Oct 17th, 2017
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.24 KB | None | 0 0
  1. Promise.resolve(0)
  2. .then(divisor => 10 / divisor) // divide by 0!
  3. .then(value => value * 5) // skipped
  4. .catch(() => Infinity) // recover from error
  5. .then(result => console.log(result)) // result -> Infinity
Add Comment
Please, Sign In to add comment