- 1
javascript
Whatâs the output of this code? var sum=0; for(i=4; i<8; i++) { if (i == 6) { continue; } sum += i; } document.write(sum);
2 Answers
0
The output is 16
0
Your loop will start from 4
So sum + 4 = 4
And sum + 5 = 9
It will skip 6
Then sum + 7 = 14
Then the loop will stop because i = 8 not less than 8



