- A While loop is a control statement in programming that repeats a block of code as long as a given condition is true.
SYNTAX:
while(condition){
}
EXAMPLE:
i=1;
while(i<=5){
console.log(i);
i++;
}
SYNTAX:
while(condition){
}
EXAMPLE:
i=1;
while(i<=5){
console.log(i);
i++;
}
For further actions, you may consider blocking this person and/or reporting abuse
Top comments (0)