19.
Which are logical operators in JavaScript?
&& (AND)
|| (OR)
! (NOT)
?? (Nullish Coalescing Operator)
Correct: A, B, C
The logical operators in JavaScript are && (AND), || (OR), and ! (NOT). The && operator evaluates to true if both operands are true. The || operator evaluates to true if at least one operand is true. The ! operator inverts the value of its operand, i.e., true becomes false and false becomes true. The ?? operator is the Nullish Coalescing Operator, which returns the right-hand operand if the left-hand operand is null or undefined, otherwise, it returns the left-hand operand.