From aa253c1a1300fe768a96441703125b4675c790db Mon Sep 17 00:00:00 2001 From: Tejus Wadbudhe Date: Tue, 25 Oct 2022 14:05:13 +0530 Subject: [PATCH] Corrected grammar in explanation I changed the comment to explain the working of the loop from past tense to present tense. You can see other comments which are in present tense "// runs if condition is false" but comments in other loops are in past tense "//Condition was true. Code in this block will run.". Minor but completes the doc. --- 2-js-basics/3-making-decisions/README.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/2-js-basics/3-making-decisions/README.md b/2-js-basics/3-making-decisions/README.md index 5dfc3fe4..bcbd7d52 100644 --- a/2-js-basics/3-making-decisions/README.md +++ b/2-js-basics/3-making-decisions/README.md @@ -45,7 +45,7 @@ The if statement will run code in between its blocks if the condition is true. ```javascript if (condition){ - //Condition was true. Code in this block will run. + //Condition is true. Code in this block will run. } ``` @@ -56,7 +56,7 @@ let currentMoney; let laptopPrice; if (currentMoney >= laptopPrice){ - //Condition was true. Code in this block will run. + //Condition is true. Code in this block will run. console.log("Getting a new laptop!"); } ``` @@ -70,11 +70,11 @@ let currentMoney; let laptopPrice; if (currentMoney >= laptopPrice){ - //Condition was true. Code in this block will run. + //Condition is true. Code in this block will run. console.log("Getting a new laptop!"); } else{ - //Condition was false. Code in this block will run. + //Condition is false. Code in this block will run. console.log("Can't afford a new laptop, yet!"); } ``` @@ -101,11 +101,11 @@ let laptopPrice; let laptopDiscountPrice = laptopPrice - (laptopPrice * .20) //Laptop price at 20 percent off if (currentMoney >= laptopPrice || currentMoney >= laptopDiscountPrice){ - //Condition was true. Code in this block will run. + //Condition is true. Code in this block will run. console.log("Getting a new laptop!"); } else { - //Condition was true. Code in this block will run. + //Condition is true. Code in this block will run. console.log("Can't afford a new laptop, yet!"); } ```