Answers for "arryay loop"

4

javascript loop through array

const numbers = [1, 2, 3, 4]
numbers.forEach(number => {
	console.log(number);
}

for (let i = 0; i < number.length; i++) {
	console.log(numbers[i]);
}
Posted by: Guest on September-30-2020
-1

how to use for loops to work with array in javascript

for(let i = 0; i < myArray.length; i++){
Posted by: Guest on August-27-2020

Code answers related to "Javascript"

Browse Popular Code Answers by Language