What are the different logical operators in JavaScript Only-00122

Online Quiz 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:
  1. Logical operators '&&' for logic AND operator, which returns a Boolean true if both the operands are true
  2. "| |" for logical OR operator and it returns a value of true if one or both of the operands is true.
  3. "!" for logical not operator which returns false if its single operand can be converted to true, or if it is a non-Boolean value:
  4. "++" FOR LOGICAL INCREMENT Logical increment adds one to the previous number that holds a given variable

Choose an organization

Theme Customizer

Gaussian Texture



Gradient Background