don't push the last element of an array code example
Example 1: last item in array javascript
// Find the last item in an array.
arrayName[arrayName.length - 1]
Example 2: last element from list javascript
const lastItem = colors[colors.length - 1]