0

JavaScript continue

This is how it works? var sum=0; for(i=4; i<8; i++) { if (i == 6) { continue; } sum += i; } document.write(sum);

31st Oct 2020, 12:24 PM
V.Hashini Vasanthan
V.Hashini Vasanthan - avatar
2 Réponses
+ 5
Yes it won't add 6
31st Oct 2020, 12:25 PM
Abhay
Abhay - avatar
31st Oct 2020, 2:59 PM
🇮🇳Vivek🇮🇳
🇮🇳Vivek🇮🇳 - avatar