const arr = ["","",""]
arr.splice(2,1)
console.log(arr)
output: ["eat", "sleep"]
< H2 > another chestnut: < / H2 >
const arr = ["","",""]
arr.push("")
console.log(arr)
output: ["eat", "sleep", "drink water", "pan him"]
< H2 > and this modification will result in an error: < / H2 >
const arr = ["","",""]
arr = ["","","",""]
console.log(arr)
output: error
< hr >
< H1 > Why is this? < / H1 >