Created
March 15, 2016 05:12
-
-
Save JasonDeving/ad1e4390c5a638044fb1 to your computer and use it in GitHub Desktop.
array_access_and_assignment
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; | |
box['0'] = 'meow'; | |
box['size'] // 9 | |
console.log(box[0]); | |
// ['meow'] | |
// index # 0 | |
// {0: 'meow', 'size': 9} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment