Usuń ostatni element z tablicy JavaScript
array.splice(-1,1)
Innocent Iguana
array.splice(-1,1)
Array.pop()
arr.splice(-1,1)
// OR
arr.splice(arr.length-1,1)
// OR
arr.pop()
var colors = ["red","blue","green"];
colors.pop();
array.pop();
array.splice(-1,1)