Hi guys , wrking on a code in node js , i have a for loop and need to trigger the function once the for loop finish the excution
Hi guys , wrking on a code in node js , i have a for loop and need to trigger the function once the for loop finish the excution ,
let data=[];
for(let i=0;i<someArray.length;i++){
data.push(someArr[i].name)
}
console(data)
but i always end up getting data as empty array ...
let data=[];
for(let i=0;i<someArray.length;i++){
data.push(someArr[i].name)
}
console(data)
but i always end up getting data as empty array ...
No any search results
You already invited:
1 Answers
Amos
Upvotes from: