Skip to content

Commit ab74673

Browse files
authored
Merge pull request #930 from TejusWadbudhe/patch-1
Corrected grammar in explanation
2 parents 144c81b + aa253c1 commit ab74673

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

2-js-basics/3-making-decisions/README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ The if statement will run code in between its blocks if the condition is true.
4545

4646
```javascript
4747
if (condition){
48-
//Condition was true. Code in this block will run.
48+
//Condition is true. Code in this block will run.
4949
}
5050
```
5151

@@ -56,7 +56,7 @@ let currentMoney;
5656
let laptopPrice;
5757

5858
if (currentMoney >= laptopPrice){
59-
//Condition was true. Code in this block will run.
59+
//Condition is true. Code in this block will run.
6060
console.log("Getting a new laptop!");
6161
}
6262
```
@@ -70,11 +70,11 @@ let currentMoney;
7070
let laptopPrice;
7171

7272
if (currentMoney >= laptopPrice){
73-
//Condition was true. Code in this block will run.
73+
//Condition is true. Code in this block will run.
7474
console.log("Getting a new laptop!");
7575
}
7676
else{
77-
//Condition was false. Code in this block will run.
77+
//Condition is false. Code in this block will run.
7878
console.log("Can't afford a new laptop, yet!");
7979
}
8080
```
@@ -101,11 +101,11 @@ let laptopPrice;
101101
let laptopDiscountPrice = laptopPrice - (laptopPrice * .20) //Laptop price at 20 percent off
102102

103103
if (currentMoney >= laptopPrice || currentMoney >= laptopDiscountPrice){
104-
//Condition was true. Code in this block will run.
104+
//Condition is true. Code in this block will run.
105105
console.log("Getting a new laptop!");
106106
}
107107
else {
108-
//Condition was true. Code in this block will run.
108+
//Condition is true. Code in this block will run.
109109
console.log("Can't afford a new laptop, yet!");
110110
}
111111
```

0 commit comments

Comments
 (0)