Javascript Technical Questions
Javascript Technical Questions
Basics
16. What are the differences between .map(), .filter(), and .reduce()?
17. How do you find unique elements in an array?
18. What is the purpose of for...in and for...of? When should you use each?
19. Explain the Array.prototype.splice() and slice() methods.
20. How does destructuring work for arrays and objects?
Asynchronous JavaScript
21. What is the difference between synchronous and asynchronous code?
22. Explain the difference between setTimeout() and setInterval().
23. What is a promise? How does it differ from a callback?
24. Explain async/await and how they relate to promises.
25. What are the states of a promise?
Error Handling
Modules
Event Handling
Advanced Concepts
41. What are generators in JavaScript? How do they differ from regular functions?
42. Explain the concept of a promise chain and its importance.
43. What is the difference between WeakMap and Map?
44. What is the difference between null and undefined?
45. How does JavaScript handle memory management and garbage collection?
Performance and Optimization
Miscellaneous
51. What are template literals, and how do you use them?
52. What are tagged templates in JavaScript?
53. How do you polyfill a feature in JavaScript?
54. What is the difference between Object.freeze() and Object.seal()?
55. Explain the difference between a Symbol and a regular object property.