Skip to content

Commit 0e84a57

Browse files
authoredAug 26, 2024
Merge pull request #1240 from bskrksyp9/patch-2
Fix typos & grammatical corrections
2 parents d1b614c + 8ac6c5c commit 0e84a57

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed
 

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

+3-3
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ Making decisions and controlling the order in which your code runs makes your co
1818
1919
## A Brief Recap on Booleans
2020

21-
Booleans can be only two values: `true` or `false`. Booleans help make decisions on which lines of code should run when certain conditions are met.
21+
Booleans can have only two values: `true` or `false`. Booleans help make decisions on which lines of code should run when certain conditions are met.
2222

2323
Set your boolean to be true or false like this:
2424

@@ -118,7 +118,7 @@ switch (a) {
118118
console.log(`The value is ${a}`);
119119
```
120120

121-
✅ Test your understanding of this code and the following code by running it in a browser console. Change the values of the varaiable a to change the returned `console.log()`.
121+
✅ Test your understanding of this code and the following code by running it in a browser console. Change the values of the variable a to change the returned `console.log()`.
122122

123123
## Logical Operators and Booleans
124124

@@ -150,7 +150,7 @@ if (currentMoney >= laptopPrice || currentMoney >= laptopDiscountPrice) {
150150

151151
### Negation operator
152152

153-
You've seen so far how if you can use an `if...else` statement to create conditional logic. Anything that goes into an `if` needs to evaluate to true/false. By using the `!` operator you can _negate_ the expression. It would look like so:
153+
You've seen so far how you can use an `if...else` statement to create conditional logic. Anything that goes into an `if` needs to evaluate to true/false. By using the `!` operator you can _negate_ the expression. It would look like so:
154154

155155
```javascript
156156
if (!condition) {

0 commit comments

Comments
 (0)
Failed to load comments.