Edit article.md

Extended the reason for the do..while loop a bit
This commit is contained in:
Aadith PM 2017-06-13 21:55:02 +05:30 committed by GitHub
parent ec5e557052
commit c7e82236ce

View file

@ -82,7 +82,7 @@ do {
} while (i < 3);
```
This form of syntax is rarely used. Usually, if there's no special reason, the other form is preferred: `while(…) {…}`.
This form of syntax is rarely used except when you want the body of the loop to execute **at least once** regardless of the condition being truthy. Usually, the other form is preferred: `while(…) {…}`.
## The "for" loop