forEach() 메서드는 각각의 배열 요소에 대해 인자로 전달 받은 함수를 실행한다.
forEach()
const arr = ['a', 'b', 'c']; arr.forEach(element => console.log(element)); // a // b // c