What are the different logical operators in JavaScript Only-00122
This subjective question is related to the book/course vu bnk603 Consumer Banking. It can also be found in vu bnk603 Mid Term Solved Past Paper No. 1.
Question 1: What are the different logical operators in JavaScript Only write their names. Also write the symbols of operators.
Answer:
- Logical operators '&&' for logic AND operator, which returns a Boolean true if both the operands are true
- "| |" for logical OR operator and it returns a value of true if one or both of the operands is true.
- "!" for logical not operator which returns false if its single operand can be converted to true, or if it is a non-Boolean value:
- "++" FOR LOGICAL INCREMENT Logical increment adds one to the previous number that holds a given variable