From 8ac6c5c4944d5cf7e9f5929542ecfbe793e413d2 Mon Sep 17 00:00:00 2001 From: Bhaskar Kashyap <31563474+bskrksyp9@users.noreply.github.com> Date: Thu, 21 Dec 2023 14:15:30 +0530 Subject: [PATCH] Fix typos & grammatical corrections Used appropriate words to make sentence better and fixed a typo. --- 2-js-basics/3-making-decisions/README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/2-js-basics/3-making-decisions/README.md b/2-js-basics/3-making-decisions/README.md index ddeb0b57..e21de935 100644 --- a/2-js-basics/3-making-decisions/README.md +++ b/2-js-basics/3-making-decisions/README.md @@ -18,7 +18,7 @@ Making decisions and controlling the order in which your code runs makes your co ## A Brief Recap on Booleans -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. +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. Set your boolean to be true or false like this: @@ -118,7 +118,7 @@ switch (a) { console.log(`The value is ${a}`); ``` -✅ 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()`. +✅ 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()`. ## Logical Operators and Booleans @@ -150,7 +150,7 @@ if (currentMoney >= laptopPrice || currentMoney >= laptopDiscountPrice) { ### Negation operator -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: +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: ```javascript if (!condition) {