QUESTION IMAGE
Question
1.3.2 logical operators quiz
question: 1
what symbols represents the and operator in javascript?
- and
- and
- &
- &&
question: 2
what symbols represents the or operator in javascript?
- or
- or
- |
- ||
Question 1
In JavaScript, the logical AND operator is represented by &&. The option "AND" is a keyword - like representation but not the JavaScript symbol, "and" is not the JavaScript AND operator symbol, and & is a bitwise AND operator, not the logical AND for boolean operations in the typical logical context here. So the correct option for the "and" operator in JavaScript is the one with &&.
In JavaScript, the logical OR operator is represented by ||. The option "OR" is a non - symbol keyword - like, "or" is not the JavaScript OR operator symbol, and | is a bitwise OR operator. So the correct symbol for the "or" operator in JavaScript is ||.
Snap & solve any problem in the app
Get step-by-step solutions on Sovi AI
Photo-based solutions with guided steps
Explore more problems and detailed explanations
D. && (assuming the last option with && is option D, if the options are labeled as A. AND, B. and, C. &, D. &&)