Last active
July 31, 2020 14:04
-
-
Save seandaniel/683926b0af857e2d3108fd80f135979d to your computer and use it in GitHub Desktop.
How to use the push() method
This file contains hidden or 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 groceries = ['bananas', 'milk', 'chicken', 'avocados']; | |
groceries.push('cookies'); | |
console.log(groceries); | |
// ['bananas', 'milk', 'chicken', 'avocados', 'cookies'] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment