arr = ["cat", "dog", "rabbit"] last_element = arr[-1]
Here is what the above code is Doing:
1. We create an array called arr.
2. We create a variable called last_element and set it equal to the last element in arr.
3. We print out the value of last_element.