menu

JavaScript Operators


1. What is the result of --i when i is 3 in JavaScript?

2

3

4

undefined


2. Which operator is used for subtraction in JavaScript?

+

-

*

/


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

1

0

1

0


4. What is the result of 10 + "5" in JavaScript?

105

15

15

1005


5. Which operator is used for exponentiation in JavaScript?

^

**

*

/


6. What is the result of i-- when i is 3 in JavaScript?

2

3

4

undefined


7. What is the result of "5" + 2 in JavaScript?

7

7

52

52


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

1

0

1

0


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

1

0

1

0


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

hello world

helloworld

hello + world

worldhello