JavaScript Operators Quiz 

1. What is the result of 3 + '2' in JavaScript?

2. What is the result of '5' - 2?

3. Which operator checks both value and type?

4. What is the result of 0 == false?

5. What is the result of 0 === false?

6. What does typeof return for an array?

7. What is 2 ** 3?

8. What is '10' / '2'?

9. Which operator is optional chaining?

10. What is typeof undefined?

11. What does the nullish coalescing operator (??) return?

12. What is the result of true + true?

13. What is typeof NaN?

14. What is the result of '4' * '2'?

15. What does !!value convert to?

16. Which operator has the highest precedence?

17. What is [] == '' ?

18. What is the result of [] === []?

19. What does typeof return for functions?

20. Which operator assigns only if the left side is null or undefined?

21. What is +true?

22. What is +'7'?

23. What is 1 < 2 < 0?

24. What is typeof null?

25. What is [] + {}?

Leave a Reply

Your email address will not be published. Required fields are marked *