JavaScript Operators
JavaScript Operators - Important Points
| 21. | What is the result of 3 > 2 in JavaScript? |
|---|
A. 1
B. 0
C. 1
D. 0
View Answer Discuss Work SpaceAnswer: option a
Explanation:
The > operator is the greater than operator. It returns true if its left operand is greater than its right operand.
| 22. | What is the result of 2 < 3 in JavaScript? |
|---|
A. 1
B. 0
C. 1
D. 0
View Answer Discuss Work SpaceAnswer: option a
Explanation:
The < operator is the less than operator. It returns true if its left operand is less than its right operand.
| 23. | What is the result of 2 >= 2 in JavaScript? |
|---|
A. 1
B. 0
C. 1
D. 0
View Answer Discuss Work SpaceAnswer: option a
Explanation:
The >= operator is the greater than or equal to operator. It returns true if its left operand is greater than or equal to its right operand.
| 24. | What is the result of 2 <= 2 in JavaScript? |
|---|
A. 1
B. 0
C. 1
D. 0
View Answer Discuss Work SpaceAnswer: option a
Explanation:
The <= operator is the less than or equal to operator. It returns true if its left operand is less than or equal to its right operand.
| 25. | What is the result of 2 == "2" in JavaScript? |
|---|
A. 1
B. 0
C. null
D. undefined
View Answer Discuss Work SpaceAnswer: option a
Explanation:
The == operator is the equality operator. It returns true if its operands are equal, after converting them to a common data type if necessary.