Class exercise
- Create an array with list of values
- Change the last element to any
- If we insert some item in between, still it should apply the change
for example
let arr = ["lion", "tiger", "bear", "wolf", "fox"]
// change the last element from `fox` to `dog`
// code here
console.log(arr)
// ["lion", "tiger", "bear", "wolf", "dog"]