JS 데이터. 배열, 객체 [패스트캠퍼스 챌린지 06일차]
배열 ~번째 : index 인덱스 숫자를 넣어 조회하는 걸 indexing이라고 함 배열 데이터 내 각각의 데이터들을 element(요소)라고 함. 공식 명칭은 element이지만, html과의 구분을 위해 배열의 item이라고도 함 const numbers = [1, 2, 3, 4] const fruits = ['Mango', 'Kiwi', 'Cherry'] console.log(numbers) /* (4) [1, 2, 3, 4] 0: 1 1: 2 2: 3 3: 4 length: 4 [[Prototype]]: Array(0) */ console.log(numbers[1]) //2 console.log(fruits) /* (3) ['Mango', ..