Advertisement
Guest User

Untitled

a guest
Feb 6th, 2016
50
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.23 KB | None | 0 0
  1. getSomeDataFromGoogle()
  2. .then(getSomeThingFromTwitter())
  3. .then(saveSomethingToStorage())
  4. .then(displayInfoToUsers(),
  5. function errorHandler(err) {
  6. console.log('You only need to handle error this once in the whole chain.');
  7. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement