Arrays are variables which can hold more than one value
const fruit = ["banana", "apple", "grapes"]
const a, = [7, "Arpan", true] - Can be different types
Accessing values
let numbers = [1,2,7,9]
numbers[0] - 1
numbers[1] - 2
Finding the length
let numbers = [1,2,7,9]
numbers.length - 4
Changing the value
let numbers = [1,2,7,9]
numbers[2] = 8 - numbers now becomes [1,2,8,9] arrays are mutable, arrays can be changed
In javascript, arrays are objects. The typeof operator on array return an object
const n = [1,7,9]
typeof n - returns "object"
Array can hold many values under a single value
CODE: