Answers for "javascript loop through array of strings number"

7

iterate through array javascript

const array = ["one", "two", "three"]
array.forEach(function (item, index) {
  console.log(item, index);
});
Posted by: Guest on May-31-2020
0

javascript loop through array

const array = [1, 2, 3, 4];

for(num of array) {
  console.log(num); 
}
Posted by: Guest on November-30-2020

Code answers related to "javascript loop through array of strings number"

Code answers related to "Javascript"

Browse Popular Code Answers by Language