You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: 2-js-basics/3-making-decisions/README.md
+3-3
Original file line number
Diff line number
Diff line change
@@ -18,7 +18,7 @@ Making decisions and controlling the order in which your code runs makes your co
18
18
19
19
## A Brief Recap on Booleans
20
20
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.
22
22
23
23
Set your boolean to be true or false like this:
24
24
@@ -118,7 +118,7 @@ switch (a) {
118
118
console.log(`The value is ${a}`);
119
119
```
120
120
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()`.
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:
0 commit comments