NextGen Knowledge Center

Logical Operators

Logical operators are used to determine the logic between variables or values. In this table, the x-variable has a value of 6, and the y-variable has a value of 3 to explain the JavaScript Logical operators:

OperatorDescriptionExample
&&and(x < 10 && y > 1) is true
||or(x==5 || y==5) is false
!not!(x==y) is true