Complete JavaScript Interview Question Bank (4–7
Years Experience)
CORE FUNDAMENTALS
- What is JavaScript? Explain runtime behavior.
- Explain data types in JavaScript.
- Primitive vs Reference types.
- What is hoisting?
- var vs let vs const.
- What is TDZ?
- What is scope?
- What is lexical scope?
- What is closure?
- What is execution context?
- What is call stack?
- What is garbage collection?
THIS & FUNCTIONS
- Explain 'this' in all scenarios.
- Implicit vs explicit binding.
- call vs apply vs bind.
- Arrow vs normal function.
- What is IIFE?
- What is currying?
- What are higher-order functions?
ASYNC JAVASCRIPT
- Explain Event Loop.
- Microtasks vs Macrotasks.
- What is callback hell?
- What is Promise?
- Promise chaining.
- [Link] vs race vs allSettled.
- What is async/await?
- Error handling in async/await.
OBJECTS & PROTOTYPES
- What is prototypal inheritance?
- prototype vs __proto__.
- What happens when using 'new'?
- Shallow vs deep copy.
- How to deep clone object?
- What is [Link]?
ES6+ FEATURES
- What is destructuring?
- Spread vs Rest operator.
- Optional chaining.
- Nullish coalescing.
- Modules in JS.
ARRAY & STRING METHODS
- map vs filter vs reduce.
- forEach vs map.
- find vs filter.
- How to flatten array?
- Remove duplicates from array.
DOM & BROWSER
- Event bubbling vs capturing.
- What is event delegation?
- localStorage vs sessionStorage.
- What is CORS?
- What is debounce?
- What is throttle?
ERROR HANDLING
- try/catch/finally.
- Custom errors.
- Error propagation in promises.
PERFORMANCE
- What causes memory leaks?
- What is lazy loading?
- What is tree shaking?
CODING IMPLEMENTATIONS
- Implement debounce.
- Implement throttle.
- Implement deep clone.
- Implement bind polyfill.
- Implement Promise polyfill.
- Flatten nested array.
TRICKY OUTPUT QUESTIONS
- Output with var in loop & setTimeout.
- Output with closures.
- Output with arrow function & this.
- Output with Promise + setTimeout.
- Output with async/await.