array cut first element code example
Example 1: remove first element from array javascript
var fruits = ["Banana", "Orange", "Apple", "Mango"];
fruits.shift();
Example 2: javascript remove first element from array
let numbers = ["I'm Not A Number!", 1, 2, 3];
numbers.shift();