Skip to content

Instantly share code, notes, and snippets.

@niyazpk
Created December 11, 2011 18:17
Show Gist options
  • Save niyazpk/1461902 to your computer and use it in GitHub Desktop.
Save niyazpk/1461902 to your computer and use it in GitHub Desktop.
// subscript notation []
list = [1, 2, 3];
list[list.length] = 4;
// don't use dot notation with arrays
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment