shift method is used to remove the element from the beginning of the array
//Name of the file : array-shift.js
arr = ['b','a','e','i','o','u'];
console.log(arr);
arr.shift();
console.log(arr);
>node array-shift.js
[ 'b', 'a', 'e', 'i', 'o', 'u' ]
[ 'a', 'e', 'i', 'o', 'u' ]