JavaScript entfernen Sie das letzte Element vom Array
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"]