JavaScript & TypeScript
Event loop, closures, async patterns, type system, and runtime behavior. Deep-dive into the mechanics interviewers test at L4–L6.
- Event loop & microtasks
- Closures & scope
- Async/await patterns
- TypeScript generics
Explain the event loop and microtask queue.
What to cover: Cover call stack, task queue, microtask queue ordering, and real async examples.
Implement debounce and throttle from scratch.
What to cover: Demonstrate closure, timer management, and leading/trailing edge variants.
How does TypeScript handle structural typing vs. nominal typing?
What to cover: Explain duck typing, excess property checking, and assignability rules.