Create a function that returns the last value of the last item in an array or string. code example
Example: last element from list javascript
const lastItem = colors[colors.length - 1]
const lastItem = colors[colors.length - 1]