Total Questions : 40
Expected Time : 40 Minutes

1. What does the 'NaN' in JavaScript stand for?

2. How do you write an IF statement in JavaScript?

3. What is the purpose of 'Array.prototype.reduce()' in JavaScript?

4. What is the result of the expression '2 + 2' in JavaScript?

5. Which method is used to add a class to an HTML element in JavaScript?

6. What is the purpose of the 'typeof' operator in JavaScript?

7. How do you create a class in JavaScript?

8. What is the purpose of the 'localStorage' object in JavaScript?

9. How do you write a multi-line comment in JavaScript?

10. Which of the following is a benefit of using JavaScript modules?

11. What is the purpose of the 'addEventListener' method in JavaScript?

12. What is the purpose of the 'map' function in JavaScript?

13. Which operator is used for strict equality in JavaScript?

14. Which method is used to join elements of an array into a string in JavaScript?

15. What is the purpose of 'Array.isArray()' in JavaScript?

16. Which of the following is a falsy value in JavaScript?

17. What is the purpose of 'JSON.stringify()' in JavaScript?

18. What is the purpose of the 'async' keyword in JavaScript?

19. How do you create an object in JavaScript?

20. How do you declare a variable in JavaScript?

21. Which method is used to remove the last element from an array in JavaScript?

22. Which of the following is a valid way to declare a JavaScript array?

23. What is the purpose of 'Array.prototype.filter()' in JavaScript?

24. What is the result of the expression '2' + 2 in JavaScript?

25. How do you create a comment in JavaScript?

26. How do you check if an element has a specific class in JavaScript?

27. Which function is used to parse a JSON string in JavaScript?

28. How do you round the number 7.25 to the nearest integer in JavaScript?

29. What is the purpose of 'setTimeout()' in JavaScript?

30. Which keyword is used to define a constant in JavaScript?

31. What is the purpose of 'Promise' in JavaScript?

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

33. What does HTML stand for?

34. What is the purpose of the 'reduce' method in JavaScript?

35. Which statement is used to exit a switch statement in JavaScript?

36. What does CSS stand for?

37. What is the purpose of the 'addEventListener()' method in JavaScript?

38. How do you declare a function in JavaScript?

39. How do you comment a single line in JavaScript?

40. What is a closure in JavaScript?