Total Questions : 30
Expected Time : 30 Minutes

1. How do you comment in JavaScript?

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

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

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

5. How do you declare a variable in JavaScript?

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

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

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

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

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

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

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

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

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

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

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

17. How do you define a JavaScript class?

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

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

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

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

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

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

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

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

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

27. What does HTML stand for?

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

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

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