Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
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