What does .pop() do?

It removes the last value of an arrayIt removes the first value of an arrayIt removes a random value of an array

It removes the last value of an array.