Created
October 16, 2020 18:55
-
-
Save jonathan-fielding/ab3f4ec1d545c6b5d65de946d327622d to your computer and use it in GitHub Desktop.
Remove last element from 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.pop(); | |
console.log(fruits); // ["Banana", "Orange", "Apple", "Mango"] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment