Computer Science, asked by pavneet96, 1 year ago

what is logical oprators in pionts​

Answers

Answered by smani8111
0
There are three logical operators in JavaScript: ||(OR), && (AND), ! (NOT).

Although they are called “logical”, they can be applied to values of any type, not only boolean. Their result can also be of any type.

Answered by payal961
0

Logical operators are typically used with Boolean (logical) values.

When they are, they return a Boolean value.

However, the && and || operators actually return the value of one of the specified operands.

if these operators are used with non-Boolean values, they will return a non-Boolean value.

Similar questions