Create a method that accepts an array and returns the last item in the array.
getLastItem([1, 2, 3]) ➞ 3 getLastItem([0]) ➞ 0 getLastItem([-1, -3]) ➞ -3
return