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