JavaScript Interview Questions
Closures, hoisting, the event loop, promises, async/await, prototypes and ES6+.
61 questions
Popular Searches
1. What is JavaScript?
easyFundamentals 5 mins2. Difference Between var, let and const in JavaScript
easyFundamentals 6 mins3. What is Hoisting in JavaScript?
mediumFundamentals 6 mins4. What are Closures in JavaScript?
mediumFunctions 6 mins5. How Does the this Keyword Work in JavaScript?
mediumCore 6 mins6. What is Prototypal Inheritance in JavaScript?
mediumOOP 6 mins7. What is the Event Loop in JavaScript?
hardAsync 8 mins8. What are Promises in JavaScript?
mediumAsync 7 mins9. How Does async/await Work in JavaScript?
mediumAsync 7 mins10. What are Callbacks and Callback Hell?
easyAsync 6 mins11. == vs === in JavaScript
easyCore 5 mins12. What are the Data Types in JavaScript?
easyFundamentals 5 mins13. Difference Between null and undefined in JavaScript
easyCore 5 mins14. What are Spread and Rest Operators in JavaScript?
easyES6 5 mins15. What is Destructuring in JavaScript?
easyES6 5 mins16. Arrow Functions vs Regular Functions in JavaScript
mediumFunctions 6 mins17. What are Higher-Order Functions in JavaScript?
mediumFunctions 6 mins18. How Do map, filter and reduce Work in JavaScript?
mediumArrays 7 mins19. What is Event Bubbling and Capturing?
mediumDOM 7 mins20. What is Event Delegation in JavaScript?
mediumDOM 7 mins21. Debounce vs Throttle in JavaScript
mediumPerformance 8 mins22. Shallow Copy vs Deep Copy in JavaScript
mediumCore 6 mins23. Difference Between call, apply and bind
mediumFunctions 6 mins24. How Do JSON.parse and JSON.stringify Work?
easyCore 5 mins25. What is Currying in JavaScript?
hardFunctions 6 mins26. What is Memoization in JavaScript?
mediumPerformance 6 mins27. What is an IIFE in JavaScript?
mediumFunctions 6 mins28. What is Strict Mode in JavaScript?
easyCore 5 mins29. What is the Temporal Dead Zone in JavaScript?
hardFundamentals 6 mins30. Synchronous vs Asynchronous JavaScript
easyAsync 5 mins31. What is Hoisting in JavaScript?
easyFundamentals 5 mins32. var vs let vs const in JavaScript?
easyFundamentals 5 mins33. What is a Closure in JavaScript?
easyFunctions 6 mins34. What is a Promise in JavaScript?
easyAsynchronous JavaScript 6 mins35. What is a Callback Function in JavaScript?
mediumFunctions 6 mins36. What is Destructuring in JavaScript?
mediumES6 Features 6 mins37. What is JSON in JavaScript?
mediumData Formats 6 mins38. What is Debouncing in JavaScript?
hardPerformance 7 mins39. What is Currying in JavaScript?
hardFunctional Programming 7 mins40. What Is the Difference Between == and === in JavaScript?
easyFundamentals 4 mins41. What Is the Difference Between map() and forEach() in JavaScript?
hardArrays 5 mins42. What Is the Difference Between localStorage and sessionStorage?
hardBrowser APIs 5 mins43. How Do Microtasks and Macrotasks Differ in the JavaScript Event Loop?
hardEvent Loop 9 mins44. What Are Generator Functions in JavaScript and When Would You Use One?
mediumLanguage Features 8 mins45. How Do Async Iterators and for await...of Work in JavaScript?
hardAsynchronous JavaScript 9 mins46. What Are Proxy and Reflect in JavaScript, and What Are They Actually Used For?
hardMetaprogramming 9 mins47. How Do WeakMap and WeakSet Help Prevent Memory Leaks in JavaScript?
hardMemory Management 9 mins48. How Does structuredClone Differ From a JSON.parse(JSON.stringify(x)) Deep Copy?
mediumObjects and Data 8 mins49. What Are the Practical Differences Between ES Modules and CommonJS, and How Does Interop Break?
hardModules 10 mins50. What Are Tagged Template Literals and What Problems Do They Solve?
mediumLanguage Features 8 mins51. How Does the Iterator Protocol Work, and How Do You Make an Object Iterable?
mediumLanguage Features 8 mins52. What Are Property Descriptors, and How Do Getters and Setters Actually Work?
mediumObjects and Data 8 mins53. What Causes Event Loop Starvation, and How Do You Keep an App Responsive Under Load?
hardPerformance 9 mins54. How Does AbortController Work, and How Do You Make Async Work Cancellable?
mediumAsynchronous JavaScript 8 mins55. How Do You Handle Errors Correctly in async/await and Promise Chains?
hardAsynchronous JavaScript 9 mins56. What Are the Trickiest Hoisting and Temporal Dead Zone Cases in JavaScript?
hardScope and Execution 8 mins57. When Do You Use Promise.all, allSettled, race and any?
mediumAsynchronous JavaScript 8 mins58. What Are Symbols and Well-Known Symbols, and What Are They Used For?
mediumLanguage Features 8 mins59. What Is an Unhandled Promise Rejection, and How Do You Deal With It?
hardAsynchronous JavaScript 9 mins60. What Is the Promise Constructor Anti-Pattern, and When Is new Promise Actually Correct?
mediumAsynchronous JavaScript 8 mins61. How Do You Design Custom Error Classes and Use Error Cause Effectively?
mediumError Handling 8 mins