From b7174ff9a6be54af2ebd865434ded835908ace31 Mon Sep 17 00:00:00 2001 From: "kodak :)" <110537050+kibexd@users.noreply.github.com> Date: Tue, 6 Jun 2023 15:37:20 +0300 Subject: [PATCH] Update 03_booleans_operators_date.md The output "undefined" you see is the default result of executing the code. It indicates that there is no specific value to return or display after running the provided code snippets. Also note that the output "undefined" you see is the default result of executing the code. It indicates that there is no specific value to return or display after running the provided code snippets. --- .../03_booleans_operators_date.md | 22 +++++++++---------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/03_Day_Booleans_operators_date/03_booleans_operators_date.md b/03_Day_Booleans_operators_date/03_booleans_operators_date.md index bb376ae..9201e80 100644 --- a/03_Day_Booleans_operators_date/03_booleans_operators_date.md +++ b/03_Day_Booleans_operators_date/03_booleans_operators_date.md @@ -233,23 +233,23 @@ The ! operator negates true to false and false to true. ```js // && ampersand operator example -const check = 4 > 3 && 10 > 5 // true && true -> true -const check = 4 > 3 && 10 < 5 // true && false -> false -const check = 4 < 3 && 10 < 5 // false && false -> false +const check1 = 4 > 3 && 10 > 5; // true && true -> true +const check2 = 4 > 3 && 10 < 5; // true && false -> false +const check3 = 4 < 3 && 10 < 5; // false && false -> false // || pipe or operator, example -const check = 4 > 3 || 10 > 5 // true || true -> true -const check = 4 > 3 || 10 < 5 // true || false -> true -const check = 4 < 3 || 10 < 5 // false || false -> false +const check4 = 4 > 3 || 10 > 5; // true || true -> true +const check5 = 4 > 3 || 10 < 5; // true || false -> true +const check6 = 4 < 3 || 10 < 5; // false || false -> false //! Negation examples -let check = 4 > 3 // true -let check = !(4 > 3) // false -let isLightOn = true -let isLightOff = !isLightOn // false -let isMarried = !false // true +let isGreaterThanThree = 4 > 3; // true +let isNotGreaterThanThree = !isGreaterThanThree; // false +let isLightOn = true; +let isLightOff = !isLightOn; // false +let isMarried = !false; // true ``` ### Increment Operator