Tuesday, September 8, 2009

Declaring and iterating over 2D array in javascripts.

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 ] )
{


}
}

No comments:

Post a Comment