get the last element of a list skript code example Example: last element from list javascript const lastItem = colors[colors.length - 1]