To remove the last element of the array, we code the array name toDo, a period ., and the instruction pop().
toDo
.
pop()
Make sure to pick toDo followed by . and then pop, (, ).
pop
(
)