JavaScript basics logical operators

In today's article, we'll be looking at JavaScript logical operators.
JavaScript comes with three logical operators being and
, or
and not
.
Check out the below table of the basic use cases.
Operator | Logic | Example | ||||
&& | And | a = true && b = false | ||||
`\ | \ | ` | Or | `a = true \ | \ | b = false` |
! | Not | let a = true !a // false |