1array.pop(); //returns popped element
2//example
3var fruits = ["Banana", "Orange", "Apple", "Mango"];
4fruits.pop(); // fruits= ["Banana", "Orange", "Apple"];
1var array = [1, 2, 3, 4, 5, 6];
2array.pop();
3console.log(array);
4//Output in console section:
5//[1, 2, 3, 4, 5]