+ 2
Can anyone tell me how output 10 of below code.i don't get it.
var count=0; for(i=0;i<3;i++) { for(j=3;j>0;j--) { ++count; } } alert(++count);
3 odpowiedzi
+ 16
2 Nested loops with max value each at 3..
Thus count value after loops is 3*3.
alert(++count) though increments count once before alerting (9+1=10).....
+ 3
thanks..
+ 1
nice job