Logical Operators
JavaScript supports the following logical operators − Assume variable A holds 10 and variable B holds 20, then − Sr.No Operator and Description 1 && (Logical AND) If both the operands are non-zero, then the condition becomes true. Ex: (A && B) is true. 2 || (Logical OR) If any of the two operands are … Read more