Declaring and iterating over 2D array in javascripts.
A Code snippet. Self explainatory.
var b = new Array( 2 );
b[ 0 ] = new Array( 3 );
b[ 1 ] = new Array( 3 );
for ( var i in grades )
{
…
for ( var j in grades[ i ] )
{
…
…
}
}
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment