From c7e82236ce0c4c2e1672ef500acae398207e57f3 Mon Sep 17 00:00:00 2001 From: Aadith PM Date: Tue, 13 Jun 2017 21:55:02 +0530 Subject: [PATCH] Edit article.md Extended the reason for the do..while loop a bit --- 1-js/02-first-steps/12-while-for/article.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/1-js/02-first-steps/12-while-for/article.md b/1-js/02-first-steps/12-while-for/article.md index 575cfa68..41ae8c08 100644 --- a/1-js/02-first-steps/12-while-for/article.md +++ b/1-js/02-first-steps/12-while-for/article.md @@ -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