0
I want to generate arrays. How? Also I want multi-dimensional arrays.
var something = new Array; for (n=0; n < 5; n++){ /*what do we put here to put to generate arrays in the array something?*/ }
3 odpowiedzi
0
You can try
something.push([]);
It just adds an empty array each time.
0
Thank you! So I put an array, then I put data in it after by doing : something[index of first array][the index of the generated array]. Right?
0
You got it!
Never be afraid to try things out yourself - you learn so much more that way. And it's so much quicker than asking on here and waiting for a reply.