javascript remove last array item code example Example: splice last element from array javascript array.splice(-1,1)