const array1 = ['a', 'b', 'c']; array1.forEach(element => console.log(element));
const arr = [10,20,30,40] arr.forEach(function(item, index){ console.log(item, index); })
run.addEventListener("click", function () { people.forEach((element) => console.log(element.firstname)); }); // select a specific string in array