Last active
October 16, 2020 18:46
-
-
Save jonathan-fielding/761fb5deba76be0454722fff8a82548b to your computer and use it in GitHub Desktop.
Add an element to end of 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"]; | |
fruits.push("Kiwi"); | |
console.log(fruits); // ["Banana", "Orange", "Apple", "Mango", "Kiwi"] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment