menu

JavaScript Operators

JavaScript Operators - Important Points


1.

Which operator is used for addition in JavaScript?

A. +

B. -

C. *

D. /

Discuss Work Space

Answer: option a

Explanation:

The + operator is used for addition in JavaScript.


2. Which operator is used for subtraction in JavaScript?

A. +

B. -

C. *

D. /

Discuss Work Space

Answer: option b

Explanation:

The - operator is used for subtraction in JavaScript.

3. Which operator is used for multiplication in JavaScript?

A. +

B. -

C. *

D. /

Discuss Work Space

Answer: option c

Explanation:

The * operator is used for multiplication in JavaScript.

4. Which operator is used for division in JavaScript?

A. +

B. -

C. *

D. /

Discuss Work Space

Answer: 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

Discuss Work Space

Answer: option a

Explanation:

The % operator returns the remainder after division. In this case, 10 divided by 3 leaves a remainder of 1.


Subscribe for Latest Career Trends
Subscribe Now
Use AI and ChatGPT for Career Guidance

Unlock Your Future

Join Now
Worried for Placements in 2024?

Join FAST TRACK Course

Join Now
Supercharge Your SUCCESS

Join All in One Placement Mock Tests-2024

Join Now