Problem 2619 · Easy

Array Prototype Last

Return the final element of an array, or -1 when the array is empty.

Open the interactive visualisation