Remove Item with Pop

Remove the last element from an array.

Preview

Code

<script>
let fruits = ["Apple","Banana","Orange"];

fruits.pop();

console.log(fruits);
</script>

More JS Arrays Examples (7)