remove the last element in an array javascript code example Example: js array delete last array.pop()