iterate through array javascript

44

const array = ["one", "two", "three"]
array.forEach(function (item, index) {
  console.log(item, index);
});
foreach ($objects as $obj) {
   echo $obj->property;
}

Comments

Submit
0 Comments