node .js while code example
Example 1: javascript while loop
while (i < 10) {
text += "The number is " + i;
i++;
}
Example 2: javascript while loop
while(condition) {
//whatever
}
while (i < 10) {
text += "The number is " + i;
i++;
}
while(condition) {
//whatever
}