//Logical Binary and Ternary Operators in Javascript
== Equal to
=== Strictly equal to
!= Not equal to
!== Strictly not equal to
> Greater than
< Less than
>= Greater than or equal to
<= Less than or equal to
&& Logical and
|| Logical or
! Logical not
? Ternary operator
const num = 6;
if (num <= 4 || num <= 8) {
console.log('true')
} else {
console.log('false')
}
//Expected output:true
// logical AND
console.log(true && true); // true
console.log(true && false); // false
// logical OR
console.log(true || false); // true
// logical NOT
console.log(!true); // false