Total Questions : 30
Expected Time : 30 Minutes

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

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

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

4. What is the purpose of the 'setTimeout' function in JavaScript?

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

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

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

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

9. How do you comment in JavaScript?

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

11. How do you create an object in JavaScript?

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

13. Which operator is used to concatenate strings in JavaScript?

14. How do you declare a variable in JavaScript?

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

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

17. How do you declare a function in JavaScript?

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

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

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

21. How do you declare a variable in JavaScript?

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

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

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

25. How do you declare a function in JavaScript?

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

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

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

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

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