const myArray = ['foo', 'bar']; myArray.forEach(x => console.log(x)); //or for(let i = 0; i < myArray.length; i++) { console.log(myArray[i]); }