Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- getSomeDataFromGoogle()
- .then(getSomeThingFromTwitter())
- .then(saveSomethingToStorage())
- .then(displayInfoToUsers(),
- function errorHandler(err) {
- console.log('You only need to handle error this once in the whole chain.');
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement