javascript how to remove first element of array

JavaScript
var fruits = ["Banana", "Orange", "Apple", "Mango"]
fruits.shift()var colors = ["red", "green", "blue"];
var red=colors.shift();
//colors is now ["green","blue"];var colors = ["red", "blue", "green"]

var firstColor = colors.shift()

console.log(firstColor) // red
console.log(colors) // blue greenlet numbers = ["I'm Not A Number!", 1, 2, 3];
numbers.shift();
Source

Also in JavaScript: