From e055c4c84531d426393d7f4f2127262939eec640 Mon Sep 17 00:00:00 2001 From: Brent Guffens Date: Wed, 17 Jan 2018 21:14:35 +0100 Subject: [PATCH 1/4] Typo --- 1-js/02-first-steps/11-logical-operators/article.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/1-js/02-first-steps/11-logical-operators/article.md b/1-js/02-first-steps/11-logical-operators/article.md index 48715b16..c3a1f37a 100644 --- a/1-js/02-first-steps/11-logical-operators/article.md +++ b/1-js/02-first-steps/11-logical-operators/article.md @@ -82,7 +82,7 @@ The OR `"||"` operator does the following: - Evaluate operands from left to right. - For each operand, convert it to boolean. If the result is `true`, then stop and return the original value of that operand. -- If all other operands have been assessed (i.e. all were `falsy`), return the last operand. +- If all other operands have been assessed (i.e. all were `false`), return the last operand. A value is returned in its original form, without the conversion. From 062388f4035509c8e8fcaf5698c00c0a45f55593 Mon Sep 17 00:00:00 2001 From: Brent Guffens Date: Wed, 17 Jan 2018 21:16:21 +0100 Subject: [PATCH 2/4] Remove quotes around OR operator --- 1-js/02-first-steps/11-logical-operators/article.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/1-js/02-first-steps/11-logical-operators/article.md b/1-js/02-first-steps/11-logical-operators/article.md index c3a1f37a..143bdee1 100644 --- a/1-js/02-first-steps/11-logical-operators/article.md +++ b/1-js/02-first-steps/11-logical-operators/article.md @@ -78,7 +78,7 @@ Given multiple OR'ed values: result = value1 || value2 || value3; ``` -The OR `"||"` operator does the following: +The OR `||` operator does the following: - Evaluate operands from left to right. - For each operand, convert it to boolean. If the result is `true`, then stop and return the original value of that operand. From 3f04442b7919fe4e63b935206f3cdda1c82c8833 Mon Sep 17 00:00:00 2001 From: Brent Guffens Date: Wed, 17 Jan 2018 21:26:44 +0100 Subject: [PATCH 3/4] Remove quotes around AND operator --- 1-js/02-first-steps/11-logical-operators/article.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/1-js/02-first-steps/11-logical-operators/article.md b/1-js/02-first-steps/11-logical-operators/article.md index 143bdee1..85e29d93 100644 --- a/1-js/02-first-steps/11-logical-operators/article.md +++ b/1-js/02-first-steps/11-logical-operators/article.md @@ -196,7 +196,7 @@ Given multiple AND'ed values: result = value1 && value2 && value3; ``` -The AND `"&&"` operator does the following: +The AND `&&` operator does the following: - Evaluate operands from left to right. - For each operand, convert it to a boolean. If the result is `false`, stop and return the original value of that operand. From 4cf6cd38c7e2efeaeb59db92d475aac204deb937 Mon Sep 17 00:00:00 2001 From: Brent Guffens Date: Wed, 17 Jan 2018 21:35:25 +0100 Subject: [PATCH 4/4] Remove quotes around NOT operator --- 1-js/02-first-steps/11-logical-operators/article.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/1-js/02-first-steps/11-logical-operators/article.md b/1-js/02-first-steps/11-logical-operators/article.md index 85e29d93..202f9e83 100644 --- a/1-js/02-first-steps/11-logical-operators/article.md +++ b/1-js/02-first-steps/11-logical-operators/article.md @@ -270,7 +270,7 @@ So it is recommended to use every construct for its purpose. Use `if` if we want ## ! (NOT) -The boolean NOT operator is represented with an exclamation sign `"!"`. +The boolean NOT operator is represented with an exclamation sign `!`. The syntax is pretty simple: