Skip to content

Commit af688f7

Browse files
Merge pull request GitbookIO#129 from Purukitto/patch-1
Update while.md
2 parents be2cc26 + 4544ec0 commit af688f7

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)