i have a function which calls the another function and so on.
function A(args,callback){
// make ajax request
// on response
B()
}
function B(args){
// make ajax request
// on response
C()
}
function C(args){
// make ajax request
// on response
D()
}
I am making such ten ajax calls. Two questions...
- can anyone explain me what is callback-hell? Is this a callback Hell?
- If i call callback() inside function D, will it get called. I am not passing callback as argument to my other functions.