how to pop last 2 element from array in javascript code example Example: js array delete last array.pop()