does shift in javascript remoce the first element of array code example
Example: remove first element from array javascript
var fruits = ["Banana", "Orange", "Apple", "Mango"];
fruits.shift();
var fruits = ["Banana", "Orange", "Apple", "Mango"];
fruits.shift();