//The pop() method removes and return the last element from an array: const fruits = ["Banana", "Orange", "Apple", "Mango"]; const lastFruit = fruits.pop(); console.log(lastFruit) //>> "Mango" console.log(fruits) //>> ["Banana", "Orange", "Apple"]