Improve your JavaScript skills with this online quiz featuring 30 multiple-choice questions. Whether you’re a beginner or an experienced developer, this quiz covers JavaScript fundamentals, functions, objects, DOM manipulation, ES6 features, and asynchronous programming.

0 votes, 0 avg
14

You have 30 minutes to complete the quiz. The timer will start when you click the 'Start Quiz' button. Please ensure you are ready before beginning.

Time is up! Your quiz has ended. Your responses have been submitted automatically.


30 Minutes JavaScript Quiz Test Online

Test your JavaScript knowledge with this 30-minute quiz! Covering fundamental to advanced concepts, this quiz features 30 multiple-choice questions that will challenge your understanding of variables, functions, objects, asynchronous programming, and DOM manipulation. Perfect for interview preparation and skill enhancement.

1 / 30

1. What does the HttpOnly flag on cookies do?

2 / 30

2. What is the primary purpose of Content Security Policy (CSP)?

3 / 30

3. What is the default HTTP method used by AJAX?

4 / 30

4. What is the main drawback of callbacks?

5 / 30

5. What is the purpose of a nonce attribute in a CSP?

6 / 30

6. Why should eval() be avoided in JavaScript?

7 / 30

7. What is the purpose of the Blob object?

8 / 30

8. Which of the following is NOT a valid DOM event?

9 / 30

9. How do you handle errors in an async function?

10 / 30

10. JavaScript is a _______ language.

11 / 30

11. What type of data is commonly used in an AJAX response?

12 / 30

12. What does the Promise constructor accept?

13 / 30

13. What is the purpose of reduce() in JavaScript?

14 / 30

14. Which statement correctly defines a function in JavaScript?

15 / 30

15. How do you ensure a function runs only after a specific promise is resolved?

16 / 30

16. What will the following code do? document.getElementById("myDiv").style.color = "red";

17 / 30

17. How can you detect if cookies are enabled in the browser?

18 / 30

18. What type of attack is prevented by using the X-Frame-Options header?

19 / 30

19. What does the window.open() method do?

20 / 30

20. What does the target property of an event object return?

21 / 30

21. What is the output of console.log(1 + "2" + 3);?

22 / 30

22. Which function repeatedly executes code after a set interval?

23 / 30

23. What is the primary use of strict mode in JavaScript?

24 / 30

24. What is the purpose of the focus event in JavaScript?

25 / 30

25. What does Promise.resolve() do?

26 / 30

26. What is the difference between call() and apply() methods in JavaScript?

27 / 30

27. What is the default phase of event propagation?

28 / 30

28. What does the let keyword do in ES6?

29 / 30

29. Which of the following is a correct way to write JavaScript in an HTML document?

30 / 30

30. Which of the following is a common cause of memory leaks in JavaScript?

Your score is

The average score is 53%

Share it with your friends!

LinkedIn Facebook
0%

Rate Your Experience!

Thank you for your feedback! We appreciate your input.