Make sure you send each Promisedownstream in the chain Promiseusing return, for example:
test_func('first_call')
.then(function(){
return test_func('second_Call');
})
.then(function(){
return test_func('third_Call');
})
.then(function() {
console.log('done');
});
And look at the updated js script to prove it:
https://jsfiddle.net/44Lm3at0/1/
, return Promise, ( ) . , JavaScript, "" Promise, then .