Page |1
JAVASCRIPT INTERVIEW
1. Can you explain closures in JavaScript?
2. Call() apply() and bind()
3. Map() filter() and reduce()
4. DOM and DOM manipulation
5. Can you explain how hoisting works in JavaScript?
6. how JavaScript handles asynchronous operations?
7. What is the difference between "==" and "===" in JavaScript?
8. Explain the difference between null and undefined in JavaScript
9. How does JavaScript's event loop work?
[Link] is the difference among "let", "const", and "var" in JavaScript
[Link] you explain how prototypal inheritance works in JavaScript?
[Link] is the purpose of JavaScript's "this" keyword?
[Link] you explain the concept of promises in JavaScript?
[Link] is the difference between asynchronous and synchronous programming
in JavaScript?
[Link] you explain the concept of functional programming and how it's applied in
JavaScript?
[Link] the difference between an arrow function and a regular function in
JavaScript and when you should use arrow functions in ES6?
[Link] between map and forEach
[Link] memoization in JavaScript
[Link] vs document object
[Link] the difference between a static method and an instance method in
JavaScript
[Link] the concept of data binding in JavaScript
[Link] you explain the concept of immutability in JavaScript?
[Link] the difference between [Link]() vs const
[Link] tell me what equality means in JavaScript.
[Link] explain what generators are in JavaScript.
[Link] you tell me what the temporal dead zone is in ES6?
[Link] is the primary difference between map() and forEach()?
[Link] you tell me the difference between WeakMap and ES6 maps?
[Link] you explain what event bubbling means in JavaScript?
Page |2
[Link] are callbacks, promises, and async/await?
[Link] do we use the word “debugger” in javascript?
[Link] is currying in JavaScript?
[Link] is the prototype chain in JavaScript, and how does it relate to
inheritance?
[Link] is a Pure Function?
[Link] are genereter functions ?
[Link] vs spread operater
[Link] vs splice
[Link] is strict mode in js
[Link]’s the difference between throttling and debouncing?
[Link] copy vs deep copy
[Link] methods like slice and splice difference
42.es6 featers in js
[Link] . parallel vs [Link]
[Link] and [Link]
[Link] of html 5
REACT JS INTERVIEW
1. Explain DOM and virtual DOM
2. What are the major features of React?
3. What is JSX?
4. What is the difference between Element and Component?
5. When to use a Class Component over a Function Component?
6. What are Pure Components?
7. What is state in React?
8. What are props in React?
9. What is the difference between state and props?
[Link] are controlled components?What are uncontrolled components?What is
the difference between createElement and cloneElement?
[Link] are Higher-Order components?
[Link] the lazy function support named exports?
[Link] are stateless components?
[Link] are stateful components?
Page |3
[Link] are the limitations of React?
[Link] react project starts rendering?
[Link] of react code excecution
[Link] composition
[Link] do you memoize a component?
[Link] you implement Server-Side Rendering in react js
[Link] is React Router?
[Link] between state and props?
[Link] is Redux?
[Link] are the core principles of Redux?
[Link] to access Redux store outside a component?
[Link] is the difference between React context and React Redux?
[Link] is redux-saga?
[Link] is redux-thunk?
[Link] are hooks?
[Link] do you need to use refs?
[Link] is formik?
[Link] is prop drilling?
[Link] are the differences between Functional and Class Components
[Link] is strict mode in React?
[Link] are the lifecycle methods of React?
[Link] are the different phases of component lifecycle?
[Link] do you use the useState hook? Can you provide a simple example?
[Link] is the useEffect hook used for?
[Link] is the purpose of the useMemo hook? Provide an example of its use.
[Link] you explain how to prevent unnecessary re-renders using useMemo and
useCallback?
[Link] do you use the useContext hook to manage global state?
[Link] is the useRef hook, and how do you use it?
[Link] is custom hooks in React?
[Link] do you create an event in React?
[Link] are Synthetic events in React?
[Link] do you modularize code in the ReactJS framework?
[Link] with react –i118
[Link] is conditional rendering in React?
Page |4
[Link] reconcilliation in react
[Link] is react fiber
[Link] to make ajax call in react
[Link] is Flux and how does it relate to React?
[Link] you explain the core components of Flux architecture?
54. How does the unidirectional data flow in Flux differ from the two-way data
binding in MVC frameworks?
[Link] is the use of Webpack in React?
[Link] are Error boundaries in ReactJS?
[Link] do you optimize the loading performance of your React application for
better user experience?
[Link] React is different between other JS frameworks like Angular ? Which is
faster React ? or Angular ?
[Link] your API data is maintained in React.
[Link] a webpage like flipkart, explain how you will architecture it in React +
Redux.
[Link] to bundle for development and production purposes ?
[Link] to deploy a production ready React App ?
[Link] does data flow in React (unidirectional or bidirectional)?
[Link] api and why context api ? Difference between props and [Link]
[Link] is the event loop?
[Link] role based access control using redux
[Link] does the useState hook do? How would you use it? How do I do lazy
initialization?
[Link] does the useEffect hook do? How and when would you use it? How does
the dependency array argument work? What is the purpose of returning a
function from within the useEffect callback?
[Link] does the useRef hook do? What are some typical usages of refs? How
would you use the useRef hook?
[Link] do the useCallback and useMemo hooks do? What is the difference
between the two, if any? When would I use them?
[Link] js testing and react testing library
[Link] to improve performance of react js app
[Link] components in react
[Link] between display=none and visibility=hidden?
Page |5
[Link] in react
[Link] storage vs session storage
[Link] fragments
[Link] loading in react
[Link] loading in react router
[Link] driven development
[Link] and event emitters working
[Link] dependencies vs dependencies
[Link] driven development
[Link] motion – animations , [Link],nivo – data visualization , tanstack table
– table components , shadcn-ui , cypress and react-testing library , sentry
NODE JS & DB MANAGEMENT INTERVIEW
1) yarn vs npm
2) Explain the key features of [Link].
3) What is libuv
4) Describe a real-world scenario where [Link] would be the preferred
choice.
5) Explain the event loop’s role in [Link]
6) Compare synchronous and asynchronous programming in [Link]
7) How do you implement load balancing in [Link]?
8) What are effective caching strategies in [Link] applications?
9) What security measures do you implement in [Link] applications?
10) How do you deploy a [Link] application to production?
11) How do you optimize [Link] performance using worker threads?
12) What are the best practices for structuring a [Link] project?
13) What are the benefits of using a serverless architecture with [Link]?
14) How does [Link] differ from client-side JavaScript?
15) what are streams ? mention type of streams .
16) explain callback and callback hell
17) What do you know about RESTful APIs?
18) Can you explain RESTful APIs and how you would design one?
19) Can you explain how [Link] works?
20) Is [Link] single-threaded? Can you explain why or why not?
Page |6
21) How does [Link] handle concurrency despite being single-threaded?
22) Please explain if using promises is better than using callbacks.
23) Please explain what nextTick() does in [Link].
24) Please explain what setImmediate() does in [Link].
25) Do you understand what EventEmitter is in [Link]?
26) Can you explain how fork() and spawn() are different?
27) Please explain what piping refers to in [Link].
28) What is the difference between [Link] child process and clusters
29) Could you tell us what middleware is?
30) What is open ssl?
31) What is fetch api ?
32) Web streams api available in node js
33) What is toolchain
34) How do you handle a migration project?
35) How do you convert project from current version of node js to previous
version ?
36) Why we use [Link]?
37) Examples for node js streams,buffers,middlewares, async operations,event
emmitters and fork
38) What is error first callback function?
39) What are the MongoDB code to connect from NodeJS backend?
40) What Is Global Installation Of Dependencies?
41) What Is Local Installation Of Dependencies?
42) Can you name a few examples of HTTP requests?
43) Do you have a method to connect [Link] to a MongoDB database?
44) What do you understand about node_env?
45) What do you know about first-class functions in JavaScript?
46) How is a test pyramid implemented using the HTML API in [Link]?
47) What is the use of EventEmitter in [Link]?
48) what is the difference between put and patch?
49) What is a cluster in [Link]? Explain some of the cluster methods in [Link]
50) what is node red
51) Explain 0auth2.0 and its benefits
52) Compare service-oriented architecture (SOA) and microservice architecture
(MSA)
Page |7
53) What is REPL and what is the task of REPL?
54) How does NodeJS read files?
55) What is chaining in nodejs and how can it be used?
56) How does node support multi-processor platforms?
57) What’s the first argument passed to a nodejs callback handler?
58) How to make things Fast Like api Call ?
59) get ip address of client
60) what is body parser
61) what is nodemon
62) form data handling in express js
63) backend testing
64) Walk me through your thought process for designing a scalable back-end
for a high-traffic website.
65) Explain the trade-offs between using a relational database and a NoSQL
database for a specific application
66) Describe your debugging process.
67) How would you find the most expensive queries in an application?
68) What is the meaning of “high cohesion” and “loose coupling”?
69) Which method would you use to prevent SQL injection risks?
70) What strategies do you use to optimize MongoDB queries for performance?
71) What are the main differences between API and Web Service?
72) What are the common API testing types?What is the best approach method
to perform API testing?What tools could be used for API testing?
73) Test-Driven Development (TDD)
74) caching api response
75) Can you explain the difference between latency and throughput in the
context of API performance?
76) What specific tools and technologies have you used to monitor and
optimize API performance?
77) How can you reduce API response times?
78) What metrics do you track to measure API performance?
79) What is API rate limiting, and why is it used?
80) What measures do you take to prevent common security vulnerabilities like
SQL injection, cross-site scripting (XSS), and cross-site request forgery
(CSRF)?
Page |8
81) How do you write unit tests for your React components and [Link]
backend?
82) Can you describe your approach to end-to-end testing for an eCommerce
workflow, such as adding items to the cart and checking out?
83) How do you handle large datasets and ensure your application remains
performant?
84) What are the core components of an restful HTTP request
85) What is indexing and why is it important in databases?
86) Explain the concept of sharding.
87) What is ACID in database?
88) How do you design a database schema for a new feature in an application
89) What strategies do you use for database backup and recovery?
90) How indexes are implemented in SQL vs. NoSQL databases
91) Performance implications of indexing in SQL and NoSQL
92) How do you decide whether to use a monolithic or microservices
architecture for your eCommerce application?
93) How do you design a system that can handle millions of users?
94) Can you walk us through the architecture of your eCommerce application?
95) How do you design the database schema for an eCommerce platform?
What collections and relationships do you define?
96) How do you manage media uploads, such as images and videos, and ensure
they are stored efficiently?
97) What considerations do you take into account for designing the news feed
to ensure it is personalized and scalable?
98) How do you implement real-time notifications for activities like likes,
comments, and new followers?
99) What strategies do you use to optimize the performance of the infinite
scroll feature for the news feed?
100)How do you design the API endpoints for supporting features like posting
media, liking, commenting, and following?
101)How do you handle real-time interactions and ensure data consistency
across clients?
102)What indexing strategies do you use in MongoDB to improve query
performance?
Page |9
103)How do you manage inventory in your database to ensure accurate stock
levels?
104)What methods do you use to prevent duplicate entries, such as multiple
orders or duplicate user accounts?
105)Cookies
106)Cors
107)Authentication and authorisation
108)Passport Js(a better way to authenticate)
109)Socket io (for real-time communication)
110)Third-party authentication(Facebook, Google, etc.)
111)Lodash , Node-mailer , Node-gzip , bcrypt , [Link]
GIT
OUTPUT BASED CODING QUESTIONS
STRINGS AND ARRAYS QUESTIONS
AGILE
DEPLOYMENT