The forEach method will remind you of the loops we covered in the looping section. Its purpose is to loop over each item in the array. You pass in a function as the parameter to the method. Each time through the loop you get access to one item and can do something with the item.

const dogs = ['Duke', 'Max'];
dogs.forEach(dog => console.log(dog)); // Duke Max