Skip to content

Instantly share code, notes, and snippets.

@JasonDeving
Created March 15, 2016 05:12
Show Gist options
  • Save JasonDeving/ad1e4390c5a638044fb1 to your computer and use it in GitHub Desktop.
Save JasonDeving/ad1e4390c5a638044fb1 to your computer and use it in GitHub Desktop.
array_access_and_assignment
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