JavaScript Operators
JavaScript Operators - Important Points
1. | Which operator is used for addition in JavaScript? |
---|
A. +
B. -
C. *
D. /
View Answer Discuss Work SpaceAnswer: option a
Explanation:
The + operator is used for addition in JavaScript.
2. | Which operator is used for subtraction in JavaScript? |
---|
A. +
B. -
C. *
D. /
View Answer Discuss Work SpaceAnswer: option b
Explanation:
The - operator is used for subtraction in JavaScript.
3. | Which operator is used for multiplication in JavaScript? |
---|
A. +
B. -
C. *
D. /
View Answer Discuss Work SpaceAnswer: option c
Explanation:
The * operator is used for multiplication in JavaScript.
4. | Which operator is used for division in JavaScript? |
---|
A. +
B. -
C. *
D. /
View Answer Discuss Work SpaceAnswer: option d
Explanation:
The / operator is used for division in JavaScript.
5. | What is the result of 10 % 3 in JavaScript? |
---|
A. 1
B. 2
C. 3
D. 4
View Answer Discuss Work SpaceAnswer: option a
Explanation:
The % operator returns the remainder after division. In this case, 10 divided by 3 leaves a remainder of 1.