JavaScript Remova o último elemento da matriz
var colors = ["red","blue","green"];
colors.pop();
Brainy Butterfly
var colors = ["red","blue","green"];
colors.pop();
let last = fruits.pop() // remove Orange (from the end)
// ["Apple", "Banana"]