js remove first array object code example Example: remove first element of array javascript var fruits = ["Banana", "Orange", "Apple", "Mango"] fruits.shift()