javascript while
var i=0;
while (i < 10) {
console.log(i);
i++;
}
//Alternatively, You could break out of a loop like so:
var i=0;
while(true){
i++;
if(i===3){
break;
}
}
javascript while
var i=0;
while (i < 10) {
console.log(i);
i++;
}
//Alternatively, You could break out of a loop like so:
var i=0;
while(true){
i++;
if(i===3){
break;
}
}
do while loop in javascript
do {
text += "The number is " + i;
i++;
}
while (i < 10);
do while loop js
var i = 1;
var msg = '';
while(i < 10) {
msg += i + ' x 5 = ' + (i + 5) + '<br />';
i++;
}
document.getElementById('answer').innerHTML = msg;
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us