Skip to content

Instantly share code, notes, and snippets.

@ebonneville
Created May 7, 2012 20:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ebonneville/2630289 to your computer and use it in GitHub Desktop.
Save ebonneville/2630289 to your computer and use it in GitHub Desktop.
var myArr = new Array(2); // produces an array two indexes long
myArr[0] = "hello "; // sets the first index
myArr[1] = "world"; // sets the second index
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment