remove last item from array of objects code example
Example 1: javascript remove last element from array
var colors = ["red","blue","green"];
colors.pop();
Example 2: javascript remove last element from array
var arr = [1,0,2];
var colors = ["red","blue","green"];
colors.pop();
var arr = [1,0,2];