Skip to content

Instantly share code, notes, and snippets.

@cgrinaldi
Created June 14, 2015 23:05
Show Gist options
  • Save cgrinaldi/84e26277c3d3f78ec139 to your computer and use it in GitHub Desktop.
Save cgrinaldi/84e26277c3d3f78ec139 to your computer and use it in GitHub Desktop.
An example of the callback pyramid of doom
a (function (data1) {
b (function (data2) {
c (function (data3) {
d (function (data4) {
e (function (data5) {
f (function (data6) {
// The Egyptions would be jealous of this pyramid!
})
}
})
})
})
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment