0
Why the y
in the second for
not "run"?
var i = 0;
var bd = new Array();
bd[i++] = new Array(10,11,'Daniel');
bd[i++] = new Array(12,12,'Augusto');
bd[i++] = new Array(13, 12, 'Olavo');
See that I run the coordinates of this two-dimensional array in x
and y
- a double loop:
for (x=1 ; x<=i ; x++){
for(y=0 ; y<=2; y++){
alert(y);
if (y=10){ document.write(bd[x][y]);
// O Retorno é 10,11,'Daniel'
}
}
}
I put an "Alert" to see that the value does not come out of zero. Someone can help me?
But, what is the question even? It was not clear to me.
– Ricardo Pontual
Could you elaborate on your question?
– mcamara
Thank you for asking! I reissued the statement. My code is not working. It gives syntax error. I must be making some serious mistake.
– Daniel