순서(index)가 있는 값(element)
ex) let Number = [1, 2, 3, 4, 5]
- 3번째 인덱스 값 조회: Number[3]
- 3번째 인덱스 값 할당: Number[3] = 10
Number = [1, 2, 3, 10, 5]
Number.length
Number.push(7)
=> Number = [1, 2, 3, 10, 5, 7]Number.pop()
=> Number = [1, 2, 3, 10, 5]Number.shift()
=> Number = [2, 3, 10, 5]Number.unshift('Hi')
=> Number = ['hi', 2, 3, 10, 5]Number.indexof('hi') !=== -1
=> trueNumber.includes('hi')
=> true