Hi Shankar,
I can think of using "Promises".
developer.mozilla.org/en-US/docs/Web/JavaScript/R… http://spion.github.io/promise-nuggets/ http://bluebirdjs.com/docs/getting-started.html
The code would look like.
call1()
.then( val => {
return call2();
})
.then(val => {
return call 3();
})
.then(val => {
//the end
})