These operators are used to combine two or more conditions and perform the logical operations using && (AND), || (OR), and ! (NOT). The below table describes them.
|&&||AND||It will return True when both conditions are true||If (age > 18 && age <=35)|
|||||OR||It will return True when at least one of the conditions is true||If (age > 35 || age < 60)|
|!||NOT||If the condition is True, NOT operator makes it false||If age = 18 then, !( age = 18) returns false.|
&& (JS LOGICAL AND)
|Condition 1||Condition 2||Condition 1 && Condition 2|
|| (JS LOGICAL OR)
|Condition 1||Condition 2||Condition 1 || Condition 2|
Please refer to the Comparison Operators article.