+ 1
How can you explain it ??
Here is the code, the output will be 16. I can't understand how the output is becoming 16 ??? for (i = 0; i <= 10; i++) { if (i == 5) { continue; } document.write(i + "<br />"); }
4 Answers
+ 2
Output should be several lines with values from 0 to 4 and from 6 to 10. Probably the bug in some other place in the code.
+ 8
i agree with Roman, i did try to see the output of this code and it was a several number from 0 to 4 and 6 to 10. You have to see your code again it must be a bug in somewhere that you didn't realise
+ 4
use a visualizer if you not sure how the code is executing it helps with for loops.
+ 1
thanks