Skip to content

Instantly share code, notes, and snippets.

@bcoe
Created May 11, 2014 19:44
Embed
What would you like to do?
callback-hell.js
a(b, function(err, c) {
// wait for a to finish.
d(c, function(err, e) {
// wait for d to finish.
f(e, function(err, g) {
// do something with the result of f.
})
})
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment