Created
October 16, 2020 19:03
-
-
Save jonathan-fielding/445d6e9a89f2109c5318dd9a0625f8e8 to your computer and use it in GitHub Desktop.
Removing first item from an array
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const fruits = ["Banana", "Orange", "Apple", "Mango", "Kiwi"]; | |
fruits.shift(); | |
console.log(fruits); // ["Orange", "Apple", "Mango", "Kiwi"] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment