JavaScript Hapus elemen terakhir dari 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"]