Last active
January 19, 2018 09:43
-
-
Save kevinchisholm/433427a4ee674bbcc3b08370748ac7e4 to your computer and use it in GitHub Desktop.
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
var foo = ["mon","tues","wed"]; | |
foo.push("thurs"); | |
console.dir(foo); // ["mon","tues","wed","thurs"] | |
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
foo[foo.length] = "thurs"; | |
console.dir(foo); //["mon","tues","wed","thurs" | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment