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
// && 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

Loading…
Cancel
Save