You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: loops/while.md
-9Lines changed: 0 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -18,15 +18,6 @@ while (i < 5) {
18
18
}
19
19
```
20
20
21
-
The Do/While Loop is a variant of the while loop. This loop will execute the code block once before checking if the condition is true. It then repeats the loop as long as the condition is true:
22
-
23
-
```javascript
24
-
do {
25
-
// code block to be executed
26
-
} while (condition);
27
-
```
28
-
29
-
30
21
**Note**: Be careful to avoid infinite looping if the condition is always true!
0 commit comments