eff. em. ell. Seriously, for loops of death to populate 2 - TopicsExpress



          

eff. em. ell. Seriously, for loops of death to populate 2 dimensional arrays conversions to do-while. var colorIndex = new Array(7); var colors = [blue, green, red, yellow, orange, purple, brown]; for(var i = 0; i < colorIndex.length; i++) { colorIndex[i] = new Array(i); document.write(colorIndex[i].length + ); for(var x = 0; x < colorIndex[i].length; x++) { colorIndex[x][x] = colors[x]; document.write(colorIndex[x][x] + ); } document.write(); }
Posted on: Thu, 21 Aug 2014 23:32:53 +0000

Trending Topics



Recently Viewed Topics




© 2015