JS Arrays are a data structure.
A data structure simply is a collection of data(boolean value, strings).
A data structures, specifically arrays which we're about to see, allow us to group data together ans we could store different strings.
let students = [];
let colors = ["red", "orange", "yellow"];
Unlike with the string, it is possible to change particular characters in an array.
array.push('item')
push
onto array, array actually is updated and what it returns is the technical term is the new length of the array.array.pop()
array.shift()
array.unshift('item')
array1.concat(array2)
array.includes('item')
array.indexOf('index')
array.reverse()
array.slice(start, end)
array.splice(start, deleteCount, 'item')
array.sort()
JS actually doesn't care about what's inside, at least with arrays.
So when I make a new array ans it has its own address, its own reference, its own social security number.
Even if the contents are the same, they are distinct because the social security numbers are different.
They are the same exact reference. But it's not going to help us if we're trying to compare the contents.
But as soon as I try and set arrays to something entirely defferent, a new reference, we get an error.