Skip to content

Instantly share code, notes, and snippets.

@NV
Created August 15, 2010 10:41
Show Gist options
  • Save NV/525344 to your computer and use it in GitHub Desktop.
Save NV/525344 to your computer and use it in GitHub Desktop.
obj = {
a: 0,
2: 1
};
obj.a // 0
obj[2] // 1
obj.2 // Parse error
obj
.a // 0
obj
.2 // 0.2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment