JavaScript Interview Questions
Closures, hoisting, event loop, prototypes, promises, and tricky output questions.
50 questions in this section
- Variables: var, let, const (Beginner)
- Data Types & Type Checking (Beginner)
- Operators & Short-Circuit Evaluation (Beginner)
- String Methods & Template Literals (Beginner)
- Array Methods (map, filter, reduce) (Beginner)
- Destructuring & Spread/Rest (Beginner)
- Error Handling (try/catch/finally) (Beginner)
- == vs === Equality Operators (Beginner)
- Arrow Functions vs Regular Functions (Beginner)
- Template Literals & String Interpolation (Beginner)
- null vs undefined (Beginner)
- JSON: parse, stringify & Common Pitfalls (Beginner)
- Closures & Lexical Scope (Intermediate)
- Hoisting & Temporal Dead Zone (Intermediate)
- Object Methods & Property Descriptors (Intermediate)
- this Keyword & Binding Rules (Intermediate)
- call, apply, bind (Intermediate)
- Prototypes & Prototype Chain (Intermediate)
- Classes & Inheritance (Intermediate)
- Promises Deep Dive (Intermediate)
- async/await Patterns (Intermediate)
- Type Coercion & Comparison (Intermediate)
- Modules (CommonJS vs ESM) (Intermediate)
- DOM Manipulation & Events (Intermediate)
- Event Delegation & Bubbling (Intermediate)
- Web APIs (localStorage, fetch, etc.) (Intermediate)
- Event Bubbling, Capturing & Event Flow (Intermediate)
- Higher-Order Functions (Intermediate)
- Callback Hell & Async Patterns (Intermediate)
- Symbols & Well-Known Symbols (Intermediate)
- Proxy and Reflect API (Advanced)
- WeakMap and WeakSet (Intermediate)
- Generator Functions (Advanced)
- Optional Chaining and Nullish Coalescing (Beginner)
- Currying and Function Composition (Intermediate)
- Memoization (Intermediate)
- Property Descriptors and Object.defineProperty (Advanced)
- Deep Cloning: structuredClone vs JSON (Intermediate)
- JavaScript Design Patterns (Intermediate)
- Memory Leaks in JavaScript (Advanced)
- Custom Error Types and Error Handling (Intermediate)
- WebSockets and Real-time Communication (Intermediate)
- Advanced Regular Expressions (Intermediate)
- JavaScript Performance Optimization (Advanced)
- Tagged Template Literals (Advanced)
- Intersection Observer and Mutation Observer (Intermediate)
- Async Iterators and for await...of (Advanced)
- Advanced Object Patterns and Mixins (Intermediate)
- ES Modules vs CommonJS (Intermediate)
- Promise Combinators (Intermediate)