-
-
Save TheShubhamVsnv/d8d025ac9b074e42307ef2b7aa1e9ca9 to your computer and use it in GitHub Desktop.
push() and pop():
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
let items = ["apple", "banana"]; | |
items.push("orange"); // Add a new item | |
let removedItem = items.pop(); // Remove the last item |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment