0
How to create while loop,for loop and for while loop?
2 odpowiedzi
+ 3
while(condition){
// do stuff
}
do{
// stuff
}while(condition);
for(variable;condition;itteration){
//do stuff
}
variable/
var a = 0;
condition/
Any true of false statement (boolean)
a < 10;
itteration/
modification of the variable every time the loop has reached the end.
a++;
for(var a = 0; a < 10; a++)
{
}
0
you're askin' it in application which already have answer on it in course...