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.
pull/774/head
kodak :) 2 years ago committed by GitHub
parent 65e85f642b
commit b7174ff9a6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -233,23 +233,23 @@ The ! operator negates true to false and false to true.
```js ```js
// && ampersand operator example // && ampersand operator example
const check = 4 > 3 && 10 > 5 // true && true -> true const check1 = 4 > 3 && 10 > 5; // true && true -> true
const check = 4 > 3 && 10 < 5 // true && false -> false const check2 = 4 > 3 && 10 < 5; // true && false -> false
const check = 4 < 3 && 10 < 5 // false && false -> false const check3 = 4 < 3 && 10 < 5; // false && false -> false
// || pipe or operator, example // || pipe or operator, example
const check = 4 > 3 || 10 > 5 // true || true -> true const check4 = 4 > 3 || 10 > 5; // true || true -> true
const check = 4 > 3 || 10 < 5 // true || false -> true const check5 = 4 > 3 || 10 < 5; // true || false -> true
const check = 4 < 3 || 10 < 5 // false || false -> false const check6 = 4 < 3 || 10 < 5; // false || false -> false
//! Negation examples //! Negation examples
let check = 4 > 3 // true let isGreaterThanThree = 4 > 3; // true
let check = !(4 > 3) // false let isNotGreaterThanThree = !isGreaterThanThree; // false
let isLightOn = true let isLightOn = true;
let isLightOff = !isLightOn // false let isLightOff = !isLightOn; // false
let isMarried = !false // true let isMarried = !false; // true
``` ```
### Increment Operator ### Increment Operator

Loading…
Cancel
Save