Top 101 Javascript Interview Questions

Q1. What is JavaScript?


Q2. Enumerate the differences between Java and JavaScript?


Q3. What are JavaScript Data Types?


Q4. List some features of JavaScript


Q5. Who developed JavaScript, and what was the first name of JavaScript?


Q6. What is the use of isNaN function?


Q7. Which is faster between JavaScript and an ASP script?


Q8. Is JavaScript a case-sensitive language?


Q9. Explain Hoisting in javascript?


Q10. List some of the advantages of JavaScript?


Q11. List some of the disadvantages of JavaScript?


Q12. What is negative Infinity?


Q13. Is it possible to break JavaScript Code into several lines?


Q14. How can you create an object in JavaScript?


Q15. How can you create an Array in JavaScript?


Q16. What is a name function in JavaScript & how to define it?


Q17. Difference between == and === operators?


Q18. What is the purpose of the array slice method?


Q19. What is the purpose of the array splice method?


Q20. What are the scopes of a variable in JavaScript?


Q21. Define anonymous function?


Q22. Explain Implicit Type Coercion in javascript?


Q23. Can an anonymous function be assigned to a variable?


Q24. What are global variables? How are these variable declared?


Q25. What is a prompt box?


Q26. In JavaScript what is an argument object?


Q27. Define closure


Q28. Is javascript a statically typed or a dynamically typed language?


Q29. What is the difference between JavaScript and JScript?


Q30. What is the purpose of ‘This’ operator in JavaScript?


Q31. What is Callback?


Q32. Explain passed by value and passed by reference?


Q33. What is an Immediately Invoked Function in JavaScript?


Q34. What is the purpose of the let keyword?


Q35. Explain Higher Order Functions in javascript?


Q36. Differences between declaring variables using var, let and const?


Q37. What is the Temporal Dead Zone?


Q38. What is memoization


Q39. How are object properties assigned?


Q40. What is Lexical Scope?


Q41. What is a window.onload and onDocumentReady?


Q42. What is currying in JavaScript?


Q43. What is the working of timers in JavaScript?


Q44. What are the variable naming conventions in JavaScript?


Q45. How does TypeOf Operator work?


Q46. How to write a hello world example of JavaScript?


Q47. Which symbol is used for comments in Javascript?


Q48. How you can submit a form using JavaScript?


Q49. What are all the looping structures in JavaScript?


Q50. How to detect the operating system on the client machine?


Q51. What do you mean by NULL in JavaScript?


Q52. What is an undefined value in JavaScript?


Q53. What are all the types of Pop-up boxes available in JavaScript?


Q54. What is the difference between an alert box and a confirmation box?


Q55. What are JavaScript Cookies?


Q56. What a pop() method in JavaScript is?


Q57. What is break and continue statements?


Q58. Which keywords are used to handle exceptions?


Q59. What is variable typing?


Q60. What are the different types of errors in JavaScript?


Q61. What is the use of the Push method in JavaScript?


Q62. What is the unshift method in JavaScript?


Q63. What boolean operators can be used in JavaScript?


Q64. What is unescape() and escape() functions?


Q65. What are the decodeURI() and encodeURI()?


Q66. What is ECMASCRIPT?


Q67. New Features in ES6?


Q68. What are the important JavaScript Array Methods?


Q69. What is JavaScript Unit Testing?


Q70. What are the challenges in JavaScript Unit Testing?


Q71. Solutions of JavaScript Unit Testing?


Q72. What are some important JavaScript Unit Testing Frameworks?


Q73. What is DOM in JavaScript?


Q74. What is External JavaScript?


Q75. When to Use Internal and External JavaScript Code?


Q76. How do you manipulate DOM using a service worker?


Q77. What is the use of a constructor function in JavaScript?


Q78. What are arrow functions?


Q79. What is the rest parameter?


Q80. What is spread operator?


Q81. What is the real name of JavaScript?


Q82. What is the difference between undefined value and null value?


Q83. How do you access history in JavaScript?


Q84. What is design pattern in JavaScript?


Q85. What is Singleton class in JavaScript?


Q86. Different types of storage in browser?


Q87. What is undefined and not defined?


Q88. Different types of selector in JavaScript?


Q89. What is Throttling?


Q90. What is Debouncing?


Q91. What is mutable and immutable in JavaScript?


Q92. How can we clone JavaScript object?


Q93. How can we merge more than one array?


Q94. Types of data structures in JavaScript?


Q95. What is array.prototype in JavaScript?


Q96. What do you know about Promise.all?


Q97. What is recursion in a programming language?


Q98. What is the difference between ViewState and SessionState?


Q99. What is the difference between Attributes and Property?


Q100. What is BOM?


Q101. What is the difference between innerHTML & innerText?