javascript Quiz

1. What is the purpose of the typeof operator in JavaScript?

2. What is the difference between == and === operators in JavaScript?

3. What is a closure in JavaScript?

4. What is the purpose of the addEventListener() method?

5. What does the this keyword refer to in a regular function?

6. What is the purpose of the map() method for arrays?

7. What is the purpose of the JSON.stringify() method?

8. What is the purpose of the setTimeout() function?

9. What is the difference between let and var keywords for variable declaration?

10. What is the purpose of the filter() method for arrays?

11. What is the purpose of the Promise object in JavaScript?

12. What is event bubbling in JavaScript?

13. What is the purpose of the document.querySelector() method?

14. What is the purpose of the reduce() method for arrays?

15. What is the purpose of the async and await keywords?

16. What is the purpose of the localStorage object?

17. What is the purpose of the Array.isArray() method?