I need some help structuring my function w/ callbacks. The question: Is my logic performing how I imagine it?
app = getApp(function(val1, val2){
helperFunction(val3, function(val4, val5, callbackTwo){
//...logic
var val6 = ....
callbackTwo(val6)
},
function(val6){
//logic
});
};
function helperFunction(val3, callback, callbackTwo){
//logic
callback(val4, val5, callbackTwo);
}
Basically it works. However depending on my first anonymous callback function's logic, is there any chance that my callbackTwo function will be triggered before the assignment of val6?