0
Hello, someone can help me in this matter. I would like to place each result inside my new array.
Example, my for generates the result of 9 Array.
success: function(res){
for(i in res){
var dados = [
[res[i].nome, res[i].sobrenome]
];
console.log(pos);
}
}
I would like each space of my new array to be filled with each output of my for, result 1 in space 0 of the new array, result 2 in space 1 of the new array etc....
var result = new Array('','','','','','','','','',);
console.log(result);
I did not find a way to do this in Javascript, if anyone can help me I appreciate.
That’s exactly it, Thank you very much. I need to study about push and vlw map.
– lCezar