how to delete 1st and last element of an array in js code example
Example: remove first element of array javascript
var fruits = ["Banana", "Orange", "Apple", "Mango"]
fruits.shift()
var fruits = ["Banana", "Orange", "Apple", "Mango"]
fruits.shift()