const colors = ['red', 'yellow', 'green', 'blue'] const lastItem = colors[colors.length - 1] console.log(lastItem)