+ 1
a little confused, Please Explain More Simple?
var sum=0; for(i=4; i<8; i++) { console.log(i) // 4,5,6,7 if (i == 6) { continue; } sum += i; console.log(i) // 4,5,7 = 16 } document.write(sum);
1 Answer
var sum=0; for(i=4; i<8; i++) { console.log(i) // 4,5,6,7 if (i == 6) { continue; } sum += i; console.log(i) // 4,5,7 = 16 } document.write(sum);