Answers for "loop over array [inescript"

8

loop through an array in javascript

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

Code answers related to "Javascript"

Browse Popular Code Answers by Language