Total Questions : 50
Expected Time : 50 Minutes

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

2. How do you create a class in JavaScript?

3. Which of the following is not a JavaScript data type?

4. What is a closure in JavaScript?

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

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

7. Which method is used to convert a string to uppercase in JavaScript?

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

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

10. How do you create an object in JavaScript?

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

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

13. What is the purpose of 'localStorage' in JavaScript?

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

15. What does CSS stand for?

16. How do you declare a variable in JavaScript?

17. How do you declare a function in JavaScript?

18. How do you declare a variable in JavaScript?

19. How do you create a comment in JavaScript?

20. What is the purpose of the 'Math.random()' function in JavaScript?

21. Which method is used to change the content of an HTML element in JavaScript?

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

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

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

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

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

27. What is the purpose of the 'bind' method in JavaScript?

28. How do you comment in JavaScript?

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

30. What does HTML stand for?

31. How do you declare a function in JavaScript?

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

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

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

35. What does the 'typeof' operator do in JavaScript?

36. How do you handle errors in asynchronous JavaScript code?

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

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

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

40. What is the purpose of 'console.log()' in JavaScript?

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

42. Which method is used to add an element to the end of an array in JavaScript?

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

44. What is the purpose of 'Array.prototype.map()' in JavaScript?

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

46. What is the purpose of the 'fetch' function in JavaScript?

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

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

49. What is the purpose of 'document.getElementById()' in JavaScript?

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