+ 1
why output is that. somebody can explain this?Please
var x=""; for(i=0;i<3;i++) { x+=i+"<br>"} document.write(x); output; = 0 0 1 0 1 2
4 Réponses
+ 3
" x += i + <br> " means "x = x + i + <br>". So your output is like;
0<br> //First
0<br>1<br> //Second
0<br>1<br>2<br> //Third
Etc.
0
this is also my output. I ask that; why it is
0
@Sayme answered your question perfect.
0
Thanks all