80+ Most Asked Javascript Interview Questions(TCS, Accenture, IBM, Infosys, etc)

Deepa Jarout
3 min readSep 22, 2022

JavaScript Interview Questions
  1. What is event bubbling in JavaScript?
  2. Explain bind, call and apply.
  3. Difference between map and for each.
  4. What is hoisting?
  5. Can you share the code of call and bind?
  6. What is the difference between bind and call?
  7. What is this keyword?
  8. Explain Callback & Callback hell
  9. The difference between callback, promise, and async-await
  10. Can you explain async-await and its advantages?
  11. Explain Clouser in javaScript.
  12. Explain curry in javaScript.
  13. Explain memory leak in JavaScript.
  14. Internal working mechanism for JavaScript.
  15. About the project and its scalability.
  16. What is the lexical scope?
  17. Explain the different methods of promise & also explain when to use them. (promise.all, promise.allSettled etc)
  18. Different ways to create objects in JavaScript. (there are 4 ways )
  19. Explained the design pattern & how u have implemented it in your project also?
  20. What is a higher-order function?
  21. What is the event emitter, and how do emit and listen to events?
  22. What is a prototype in JavaScript?
  23. What will u get a prototype of the object?
  24. Explain cors?
  25. What is the return value of reduce?
  26. Is javaScript have a map data type?
  27. Are you using OOPS in JavaScript?
  28. What is Functional programming?
  29. Explain the difference between for loop & array.map, when to use them.
  30. Explain the javaScript engine execution flow by taking below example: setTimeout(console.log()) and setImmeditae(console.log());
  31. Describe JavaScript execution stack and event loop functionality.
  32. How you can invoke HTTP calls from the server itself (superset modules)?
  33. how you are handling dependency injections?
  34. Can you pls explain the lifecycles of HTTP?
  35. What is the middleware and where you have used it in your project? any example?
  36. What is a callback, and why do we need it?
  37. What are the modules you are using all over the project?
  38. Explain a few methods of arrays.
  39. What are destructuring and spread Operators and their benefits of using it?
  40. What is better to write in code, callback, or promises? Why?
  41. How you are doing testing in your team?
  42. Why did you choose apache JMeter over other testing tools?
  43. How we can use inheritance in JavaScript?
  44. Why do we need JavaScript?
  45. Difference between require and import.
  46. What is some and every in JavaScript?
  47. What is event bubbling and capturing?
  48. What are obj.freeze and obj.seal & difference between them?
  49. What are the best ways to create objects?
  50. Benefits of creating an object using Object.create
  51. What is the state for a promise?
  52. Which latest ECMA standard replaces promise?
  53. How to handle catch in async await?
  54. How to handle catch in async await without using try-catch?
  55. Which tool you are using for coding & why?
  56. How do you debug the code?
  57. How u learn new things & new stack?
  58. Which modules you are using for creating HTTP services & why?
  59. What is the difference between undefined and null?
  60. What are interpolations in JavaScript?
  61. Why nodeJs was created as a single-threaded language?
  62. What are shallow cloning and deep cloning & the difference between them?
  63. What is the second value in parseInt?
  64. What are event emitters and dispatchers?
  65. What is the answer to a given question why? [] == [];
  66. Difference between const vs Object.freeze() vs Object.seal()
  67. How you are invoking APIs from the front end?
  68. What is the best way to copy the object and why?
  69. How to deep clone?
  70. Inbuilt methods of cloning the object vs loadash_clone? which one is better & why?
  71. What is the optimized way to sort the array?
  72. Explain the different types of sorting Algorithms.
  73. Is In-built JS sorting methods better or user custom sorting? explain why also?
  74. What is the best way to create an object in the given option Object.create vs creating an object from new.
  75. Adding a field to the const object is possible.
  76. Can values be added to the const array?
  77. How have singleton design patterns been implemented (at the code level)?
  78. What distinguishes the arrow function from the standard function?
  79. How do spread operators work?
  80. Describe the ES6 feature.
  81. What are some benefits of traditional for loop constructs vs for each?
  82. What is the difference between this in an arrow function and a traditional function?
  83. What are some dangers of closures?

Sign up to discover human stories that deepen your understanding of the world.

Free

Distraction-free reading. No ads.

Organize your knowledge with lists and highlights.

Tell your story. Find your audience.

Membership

Read member-only stories

Support writers you read most

Earn money for your writing

Listen to audio narrations

Read offline with the Medium app

Deepa Jarout
Deepa Jarout

Written by Deepa Jarout

I am Software developer.I like problem solving, traveling, photography, dancing, video games, conversation.I like to explore new places with different tradition

Responses (1)

Write a response

What is the optimized way to sort the array?
whats the answer for this