Created
June 3, 2013 07:46
-
-
Save peponi/5696653 to your computer and use it in GitHub Desktop.
simple javascript two dimension array
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// create an two dimension array | |
function Create2DArray(rows) { | |
var arr = []; | |
for (var i=0;i<rows;i++) { | |
arr[i] = []; | |
} | |
return arr; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment