cgrinaldi
6/14/2015 - 11:05 PM

An example of the callback pyramid of doom

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!
          })
        }  
      })
    })
  })
})