Created
September 20, 2018 15:51
-
-
Save nake89/f10ac853fecc1d1df6557ef3b6028a9e to your computer and use it in GitHub Desktop.
Create multidimensional array in javascript
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
class Mulda { | |
constructor(a, b) { | |
var mulda = new Array(a) | |
for (var x = 0; x < a; x++) { | |
mulda[x] = new Array(b) | |
} | |
return mulda | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment