var Cars = ["Volvo", "Mazda", "Lamborghini", "Maserati"]; //We can get the total number of elements like this. var hmCars = Cars.pop(); //hmCars is now Maserati console.log(hmCars)