Skip to content

Commit 4544ec0

Browse files
authored
Update while.md
Removed the do while example as it has a separate file for that already
1 parent be2cc26 commit 4544ec0

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

loops/while.md

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -18,15 +18,6 @@ while (i < 5) {
1818
}
1919
```
2020

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-
3021
**Note**: Be careful to avoid infinite looping if the condition is always true!
3122

3223

0 commit comments

Comments
 (0)