I just wanted to get all the values from the loop in a single array variable details
which is declared outside the loop. But, I didn't get it wot work. How do I do this?
var details = [];
for(i=0;i<taskArray.length;i++){
details = taskArray[i].concat("-",stateArray[i]);
}