Which array method will remove the first element of an array? code example
Example 1: remove first element of array javascript
const arr = ['foo', 'bar', 'qux', 'buz'];
arr.shift(); // 'foo'
arr; // ['bar', 'qux', 'buz']
Example 2: javascript remove first item from array
type answer