menu

JavaScript Operators


1. What is the result of !true in JavaScript?

1

0

1

0


2. What is the result of 2 !== "2" in JavaScript?

1

0

null

undefined


3. What is the result of 2 ** 3 in JavaScript?

6

8

9

10


4. What is the result of !(true || false) in JavaScript?

1

0

null

undefined


5. What is the result of 2 < 3 in JavaScript?

1

0

1

0


6. Which operator is used for exponentiation in JavaScript?

^

**

*

/


7. What is the result of 2 != "2" in JavaScript?

1

0

null

undefined


8.

Which operator is used for addition in JavaScript?

+

-

*

/


9. What is the result of (true && false) in JavaScript?

1

0

null

undefined


10. What is the result of (2 + 3) * 4 in JavaScript?

20

25

14

10