Skip to content

Instantly share code, notes, and snippets.

@joelcox joelcox/promise-chained.js
Last active Aug 29, 2015

Embed
What would you like to do?
Chained promises
promise.then(function(response) {
console.log(response);
return promise;
}).then(function(anotherResponse) {
console.log(anotherResponse);
}).catch(function(error) {
console.error(error);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.