1array.pop(); //returns popped element
2//example
3var fruits = ["Banana", "Orange", "Apple", "Mango"];
4fruits.pop(); // fruits= ["Banana", "Orange", "Apple"];
1
2const fruits = ["Banana", "Orange", "Apple", "Mango"];
3
4fruits.pop(); // Removes "Mango"
5