how to select last 3 item of an array code example Example: last element from list javascript const lastItem = colors[colors.length - 1]