Answers for "how to iterate through an array of arrays with just a for loop JS"

1

create a loop that runs through each item in an array

Create a loop that runs through each item in the "fruits" array.

var fruits = ['Apple', 'Banana', 'Orange']

for(x of fruits){
	console.log(x);
}
Posted by: Guest on June-10-2021
1

Iterate Through an Array with a For Loop

var arr = [10, 9, 8, 7, 6];
for (var i = 0; i < arr.length; i++) {
   console.log(arr[i]);
}
Posted by: Guest on December-22-2020

Code answers related to "how to iterate through an array of arrays with just a for loop JS"

Code answers related to "Javascript"

Browse Popular Code Answers by Language