js get get and remove lat element code example Example 1: js array delete last array.pop() Example 2: javascript remove last element from array var arr = [1,0,2];