how to remove first element of array javascript

JavaScript
var fruits = ["Banana", "Orange", "Apple", "Mango"]
fruits.shift()var arr = [1, 2, 3, 4]; 
var theRemovedElement = arr.shift(); // theRemovedElement == 1
console.log(arr); // [2, 3, 4]let arrayCheck = ["Apple", "Grapes", "102", "CodeBreaker"]
arrayCheck.shift()
Source

Also in JavaScript: