diff --git a/curriculum/challenges/english/02-javascript-algorithms-and-data-structures/basic-javascript/comparisons-with-the-logical-and-operator.md b/curriculum/challenges/english/02-javascript-algorithms-and-data-structures/basic-javascript/comparisons-with-the-logical-and-operator.md index da1175e7c0b..e6433fac0ad 100644 --- a/curriculum/challenges/english/02-javascript-algorithms-and-data-structures/basic-javascript/comparisons-with-the-logical-and-operator.md +++ b/curriculum/challenges/english/02-javascript-algorithms-and-data-structures/basic-javascript/comparisons-with-the-logical-and-operator.md @@ -11,7 +11,7 @@ dashedName: comparisons-with-the-logical-and-operator Sometimes you will need to test more than one thing at a time. The logical and operator (`&&`) returns `true` if and only if the operands to the left and right of it are true. -The same effect could be achieved by nesting an if statement inside another if: +The same effect could be achieved by nesting an `if` statement inside another `if`. ```js if (num > 5) { @@ -22,7 +22,7 @@ if (num > 5) { return "No"; ``` -will only return `Yes` if `num` is greater than `5` and less than `10`. The same logic can be written as: +This code will return `Yes` if `num` is greater than `5` and less than `10`. The same logic can be written with the logical and operator. ```js if (num > 5 && num < 10) { diff --git a/curriculum/challenges/english/02-javascript-algorithms-and-data-structures/basic-javascript/comparisons-with-the-logical-or-operator.md b/curriculum/challenges/english/02-javascript-algorithms-and-data-structures/basic-javascript/comparisons-with-the-logical-or-operator.md index 3202c071637..dba13a7dbc5 100644 --- a/curriculum/challenges/english/02-javascript-algorithms-and-data-structures/basic-javascript/comparisons-with-the-logical-or-operator.md +++ b/curriculum/challenges/english/02-javascript-algorithms-and-data-structures/basic-javascript/comparisons-with-the-logical-or-operator.md @@ -13,7 +13,7 @@ The logical or operator (`||`) returns `true` if either of the o The logical or operator is composed of two pipe symbols: (`||`). This can typically be found between your Backspace and Enter keys. -The pattern below should look familiar from prior waypoints: +The pattern below should look familiar from prior waypoints. ```js if (num > 10) { @@ -25,7 +25,7 @@ if (num < 5) { return "Yes"; ``` -will return `Yes` only if `num` is between `5` and `10` (5 and 10 included). The same logic can be written as: +This code will return `Yes` if `num` is between `5` and `10` (`5` and `10` included). The same logic can be written with the logical or operator. ```js if (num > 10 || num < 5) {