Mock Interview Rounds 1–8
Round 1 — Junior JavaScript Screen
Target duration: 30 minutes
Prompts
- Explain
let,const, andvar. - Predict a coercion/equality snippet.
- Write a small array transformation without mutation.
- Explain a thrown TypeError from a property access.
Scoring rubric
- Correct fundamentals 40%
- Clear reasoning 30%
- Working code 20%
- Communication 10%
Pass signal
The candidate can state assumptions, derive behavior from language/host rules, identify failure modes, and explain at least one trade-off or test strategy. Senior/staff rounds require architecture and organizational consequences, not only syntax.
Round 2 — Mid-Level Frontend JavaScript
Target duration: 45 minutes
Prompts
- Explain closures and event handlers.
- Implement event delegation for a dynamic list.
- Fetch JSON with status/error handling and cancellation.
- Diagnose a stale-response bug.
Scoring rubric
- Language/runtime model 25%
- Browser host API reasoning 30%
- Async correctness 25%
- Maintainability 20%
Pass signal
The candidate can state assumptions, derive behavior from language/host rules, identify failure modes, and explain at least one trade-off or test strategy. Senior/staff rounds require architecture and organizational consequences, not only syntax.
Round 3 — Senior Frontend JavaScript
Target duration: 60 minutes
Prompts
- Explain Promise Jobs vs browser tasks.
- Design state ownership for a complex screen.
- Profile a long-task regression.
- Threat-model unsafe DOM rendering and third-party scripts.
Scoring rubric
- Mechanism depth 25%
- Architecture 30%
- Performance/debugging 25%
- Security 20%
Pass signal
The candidate can state assumptions, derive behavior from language/host rules, identify failure modes, and explain at least one trade-off or test strategy. Senior/staff rounds require architecture and organizational consequences, not only syntax.
Round 4 — Scope / Closure Deep Dive
Target duration: 45 minutes
Prompts
- Walk declaration instantiation and TDZ.
- Explain closure behavior in loops.
- Find a memory retention bug caused by a closure.
- Compare lexical bindings with copied values.
Scoring rubric
- Specification reasoning 40%
- Debugging 25%
- Memory model 20%
- Examples 15%
Pass signal
The candidate can state assumptions, derive behavior from language/host rules, identify failure modes, and explain at least one trade-off or test strategy. Senior/staff rounds require architecture and organizational consequences, not only syntax.
Round 5 — Objects / Prototypes / Classes
Target duration: 50 minutes
Prompts
- Trace property lookup through a prototype chain.
- Explain descriptors and frozen objects.
- Refactor a constructor/prototype pattern to class syntax without changing semantics.
- Review code for prototype-pollution risk.
Scoring rubric
- Prototype semantics 35%
- Object invariants 25%
- Modern syntax reasoning 20%
- Security 20%
Pass signal
The candidate can state assumptions, derive behavior from language/host rules, identify failure modes, and explain at least one trade-off or test strategy. Senior/staff rounds require architecture and organizational consequences, not only syntax.
Round 6 — Async / Event Loop Deep Dive
Target duration: 60 minutes
Prompts
- Predict logs involving sync code, Promise reactions, queueMicrotask and setTimeout.
- Design bounded concurrency.
- Explain why async races occur on one JS thread.
- Handle cancellation across nested async operations.
Scoring rubric
- Ordering accuracy 30%
- Promise semantics 25%
- Host boundary 20%
- Production orchestration 25%
Pass signal
The candidate can state assumptions, derive behavior from language/host rules, identify failure modes, and explain at least one trade-off or test strategy. Senior/staff rounds require architecture and organizational consequences, not only syntax.
Round 7 — Browser / DOM Interview
Target duration: 50 minutes
Prompts
- Explain Node vs Element vs DOM collections.
- Build accessible form validation.
- Compare
textContentandinnerHTML. - Explain event propagation and delegation.
Scoring rubric
- Web API model 30%
- Accessibility 20%
- Security 25%
- Code quality 25%
Pass signal
The candidate can state assumptions, derive behavior from language/host rules, identify failure modes, and explain at least one trade-off or test strategy. Senior/staff rounds require architecture and organizational consequences, not only syntax.
Round 8 — Performance Interview
Target duration: 60 minutes
Prompts
- Create a measurement plan for a slow interaction.
- Separate network, CPU, DOM, memory and scheduling costs.
- Explain when a Worker helps.
- Review memoization/cache trade-offs.
Scoring rubric
- Measurement discipline 30%
- Bottleneck reasoning 30%
- Browser runtime knowledge 20%
- Trade-offs 20%
Pass signal
The candidate can state assumptions, derive behavior from language/host rules, identify failure modes, and explain at least one trade-off or test strategy. Senior/staff rounds require architecture and organizational consequences, not only syntax.