var myArray=new Array();for(var i=0;i<3;i++){ myArray[i]=new Array(); for(var j=0;j<6;j++){ myArray[i][j]=i*j; document.write(myArray[i][j]+"\n"); }} ...
var myArray=new Array();
for(var i=0;i<3;i++){
myArray[i]=new Array();
for(var j=0;j<6;j++){
myArray[i][j]=i*j;
document.write(myArray[i][j]+"\n");
}
}