왜 이걸 알아야할까? 많은 데이터들 속에서 내가 원하는 부분만 사용 및 가공하기 위해서? 다양한 방법들 1. 반복문 사용하기 for 문 const example = [1, 2 , 3, "a", "김"] const target = "김" // for반복문 사용 function findTarget(array){ for (let i=0; i < array.length; i++){ if(array[i] === target){ return i; } } } const result = findTarget(example) console.log(result, example[4]) // 4, "김" // 값이 여러개 일 때 모두 찾기 // 새로운 배열을 만들어서 담는다, index든 값이든 선택 const example ..