remove last term from an array code example
Example 1: js array delete last
array.pop()
Example 2: how to remove the last element of an array in javascript
let cars = ['BMW', 'Benz', 'Audi'];
cars.pop(); // ['BMW', 'Benz']
array.pop()
let cars = ['BMW', 'Benz', 'Audi'];
cars.pop(); // ['BMW', 'Benz']