Created
March 15, 2016 05:47
-
-
Save JasonDeving/ff95660dad1ae80402e6 to your computer and use it in GitHub Desktop.
iterating arrays once more
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
var box = [] | |
box['size'] = 9; // doesn't return size because it's a string and not integer | |
box['0'] = 'meow'; | |
box.push("Whoohoo"); | |
for(var i =0; i < 2; i++) { | |
console.log(box[i]); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment