Skip to content

Latest commit

 

History

History
88 lines (86 loc) · 4.4 KB

File metadata and controls

88 lines (86 loc) · 4.4 KB

JavaScript Interview Questions

  1. Explain datatypes in JavaScript.
  2. Explain different methods for DOM manipulation in JavaScript.
  3. What are the multiple ways to create objects in JavaScript?
  4. What is Prototype in JavaScript?
  5. How AJAX works in JavaScript and Explain about Promises in JavaScript?
  6. What is use strict in JavaScript?
  7. What is Closures in JavaScript and what is its benefits?
  8. How to create NAMESPACE in JavaScript?
  9. What is difference between CALL() and APPLY() in JavaScript?
  10. What is NaN? What is its type?
  11. How do you clone an object in JavaScript?
  12. What is function hoisting in JavaScript?
  13. What is the instanceof operator in JavaScript?
  14. What is negative infinity in JavaScript?
  15. Define event bubbling, capturing and targeting in JavaScript.
  16. Explain var self = this in JavaScript
  17. What is difference between append() vs appendChild()?
  18. What is difference between null vs undefined?
  19. What is difference between array[] vs object()?
  20. What is difference between . dot vs [] brackets?
  21. What is difference between async() or defer() keywords in JavaScript?
  22. What is difference between async() vs await() in ajax?
  23. What is Lexical Scoping in javascript?
  24. What is curry function in javascript?
  25. What is arrow function in javascript?
  26. What is request header in javascript?
  27. Explain javascript Object Constructors.
  28. What is constructor function in javascript?
  29. What is rendering in JavaScript?
  30. What is the definition of global variables? In what way, these variables are declared?
  31. Define the various types of errors which occur in JavaScript programming language?
  32. How to declare a private and a public member?
  33. What is the difference between ViewState and SessionState?
  34. What is unshift() method in JavaScript?
  35. Define unescape() and escape() functions?
  36. What is the difference between HTMLCollection and NodeList?
  37. What is the difference between firstChild and firstElementChild?
  38. Name the two functions that are used to create an HTML element dynamically.
  39. What is the use of history object?
  40. What is method chaining and currying in javascript?
  41. What is callback() function in javascript?
  42. What is shallow copy and deep copy in javascript?
  43. What is difference between stoppropagation vs stopimmediatepropagation vs preventdefault in javascript?
  44. What is event loop in javascript?
  45. What is slice(), splice() and split() in javascript?
  46. Explain array methods [ join(), pop(), push(), shift(), unshift(), concat(), map(), filter(), reduce(), reduceRight(), every(), some(), indexOf(), lastIndexOf(), find(), findIndex(), includes(), set() ]
  47. Create a Stopwatch program in javascript.
  48. Write a program in javascript. abc(2)(3); // Expected output is 5
  49. What is Event delegation and event propagation in javascript?
  50. What is variable shadowing javascript?
  51. What are different types of functions in JavaScript?
  52. When to use function declarations and expressions in JavaScript?
  53. What is difference between setTimeout() and setInterval() in JavaScript?
  54. How do you compare Object and Map?
  55. What are lambda or arrow functions?
  56. What is a first class function?
  57. What is a first order function?
  58. What is a higher order function?
  59. What is a unary function?
  60. What is a pure function?
  61. What is Temporal Dead Zone?
  62. What is IIFE(Immediately Invoked Function Expression)?
  63. What is the benefit of using modules?
  64. What is memoization?
  65. What is a service worker?
  66. How do you manipulate DOM using service worker?
  67. How do you reuse information across service worker restarts?
  68. What are the restrictions of web workers on DOM?
  69. What is the purpose of race method in promise?
  70. What is an event flow?
  71. What is the difference between document load and DOMContentLoaded events?
  72. What are the differences between WeakMap and Map?
  73. What is a freeze method?
  74. What is a rest parameter?
  75. What is a spread operator?
  76. How do you determine whether object is frozen or not?
  77. What are the differences between WeakSet and Set?
  78. How do you get meta data of a module?
  79. How to do Javascript file size and extension validation before upload?
  80. How to create captcha using javascript?
  81. How to avoid callback hell in javascript?
  82. Why is eval() considered evil and dangerous?
  83. What is the difference between encryption and hashing?
  84. What is Proxies and Reflection in JavaScript?
  85. What is a host object? How is it different from a native object?