forEach : 각원소들을 반복적으로 호출할 수 있는 함수 const superheros = ['아이언맨', '캡틴아메리카', '토르', '닥터스트레인지']; superheros.forEach(hero => { console.log(hero); }); map: 각원소들을 다른 형태로 변환해야할 때 사용하는 함수 const array = [1, 2, 3, 4, 5, 6, 7, 8]; const square = n => n * n; const squared = array.map(square); console.log(squared); indexOf: 특정 원소가 어디있는지 알아내는 함수 const superheros = ['아이언맨', '캡틴아메리카', '토르', '닥터스트레인지']; const index ..