Q1
Explain the difference between REST and GraphQL APIs. When would you choose one over the other in a real-world application?
Why they ask this:* They want to assess your understanding of modern API design patterns and your ability to make architectural decisions based on project requirements.
Q2
Walk me through how you would debug a memory leak in a JavaScript application. What tools would you use?
Why they ask this:* This tests your problem-solving approach, familiarity with debugging tools, and understanding of how applications behave under the hood.
Q3
Write pseudocode or explain how you would reverse a linked list. What is the time and space complexity?
Why they ask this:* They're evaluating your foundational data structures knowledge and ability to think about algorithm efficiency—critical for writing scalable code.
Q4
Describe the difference between synchronous and asynchronous code. Give an example of when you'd use promises or async/await in a real project.