js get last of array without pop code example
Example: javascript pop last element from array
var fruits = ["Banana", "Orange", "Apple", "Mango"];
fruits.pop();
var fruits = ["Banana", "Orange", "Apple", "Mango"];
fruits.pop();