Created
November 23, 2019 11:16
-
-
Save myquery/4cb0757d70ae667ea0fba357866f8baa to your computer and use it in GitHub Desktop.
Creating Multidimensional array
This file contains 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
let arr = new Array(4); for(let i = 0; i < 4; i++){ arr[i] = new Array(4); for(let j = 0; j < 4; j++){arr[i][j] = ‘[‘ + i + ‘,’ + j +’]’;}} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment