menu

JavaScript Operators


1. Which operator is used for multiplication in JavaScript?

+

-

*

/


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

1

0

1

0


3. What is the result of "hello" + "world" in JavaScript?

hello world

helloworld

hello + world

worldhello


4. What is the result of i++ when i is 3 in JavaScript?

2

3

4

undefined


5. Which operator is used for exponentiation in JavaScript?

^

**

*

/


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

1

0

null

undefined


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

20

25

14

10


8. What is the result of typeof 42 in JavaScript?

number

string

boolean

undefined


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

1

0

1

0


10.

Which operator is used for addition in JavaScript?

+

-

*

/