JavaScript Interview Questions

JavaScript Interview Questions

 

  1. What is JavaScript?

  2. What is the difference between var, let, and const?

  3. What are data types in JavaScript?

  4. What is type coercion?

  5. What is the difference between == and ===?

  6. What is a closure in JavaScript?

  7. What is a callback function?

  8. What is the difference between null and undefined?

  9. What is the use of the typeof operator?

  10. What is hoisting in JavaScript?

  11. What is the difference between function declaration and function expression?

  12. What is an arrow function?

  13. What is the scope of a variable?

  14. What is lexical scope?

  15. What is the difference between global and local scope?

  16. What is an object in JavaScript?

  17. What is an array in JavaScript?

  18. What are array methods like push, pop, shift, unshift?

  19. What is the map() method?

  20. What is the filter() method?

  21. What is the reduce() method?

  22. What is an event in JavaScript?

  23. What is event bubbling?

  24. What is event delegation?

  25. What is the DOM?

  26. What is the use of querySelector?

  27. What is the difference between innerText and innerHTML?

  28. How to create and append elements using JavaScript?

  29. What is a promise in JavaScript?

  30. What is async and await?

  31. What is the use of setTimeout and setInterval?

  32. What is JSON?

  33. How to convert JSON to object and vice versa?

  34. What is destructuring?

  35. What is spread operator?

  36. What is rest parameter?

  37. What are template literals?

  38. What is NaN in JavaScript?

  39. What is isNaN function?

  40. What is the difference between for, forEach, and for...of loops?

  41. What is the difference between var hoisting and let/const hoisting?

  42. What is a JavaScript class?

  43. How to create objects using a class?

  44. What is inheritance in JavaScript?

  45. What is the prototype in JavaScript?

  46. What is prototypal inheritance?

  47. What is the difference between call, apply, and bind?

  48. What is the this keyword?

  49. What is strict mode?

  50. What is a symbol in JavaScript?

  51. What are the different ways to clone an object?

  52. What is shallow copy vs deep copy?

  53. What is the difference between Array and Object?

  54. What is event loop in JavaScript?

  55. What is the call stack?

  56. What is the microtask and macrotask queue?

  57. What are higher-order functions?

  58. What is currying?

  59. What is memoization?

  60. What is debounce and throttle?

  61. What is localStorage?

  62. What is sessionStorage?

  63. What is cookies in JavaScript?

  64. What is difference between localStorage and sessionStorage?

  65. How to handle errors in JavaScript?

  66. What is try, catch, and finally?

  67. What is throw in JavaScript?

  68. What is the use of debugger statement?

  69. What are ES6 features?

  70. What is module in JavaScript?

  71. What is import and export?

  72. What is the use of default export?

  73. What are promises and how they work?

  74. How to handle promise chaining?

  75. What is fetch API?

  76. What is async/await and how it improves code readability?

  77. What is callback hell?

  78. How to avoid callback hell?

  79. What is a generator function?

  80. What is the yield keyword?

  81. What is the difference between synchronous and asynchronous code?

  82. What are JavaScript engines?

  83. What is the difference between client-side and server-side JavaScript?

  84. What is Node.js?

  85. What is npm?

  86. What is event-driven programming?

  87. What is the difference between stack and heap?

  88. What is garbage collection?

  89. What are the types of errors in JavaScript?

  90. How to debug JavaScript code?

  91. What are breakpoints?

  92. What is a Web API?

  93. What is CORS?

  94. What is the difference between GET and POST requests?

  95. How to make an API call using fetch?

  96. What is destructuring in function parameters?

  97. What is default parameter value?

  98. What is the use of includes() method in arrays?

  99. What is the difference between slice and splice?

  100. What is the difference between Math.floor(), Math.ceil(), and Math.round()?

Share:
JavaScript Interview Questions | Interviews Prep