remove last element from arr js code example Example: javascript remove last element from array Click to copyvar colors = ["red","blue","green"]; colors.pop();