Skip to content

JavaScript Core (Interview Prep)

A structured roadmap of the JavaScript fundamentals that matter most in frontend interviews. Start top-to-bottom.

Series: JavaScript Core

Progress: 0/24

Start here

JavaScript Event Loop: Microtasks vs Macrotasks (Interview-Ready)

A practical, interview-focused guide to the JS event loop: call stack, Web APIs, task queues, microtasks vs macrotasks, and common trick questions with real examples.

How to Study the JavaScript Core Track

Nearly every frontend engineering interview loop begins with a JavaScript runtime screen. Before interviewers ask about React state or system architecture, they verify whether you can predict how the V8 execution engine creates lexical environments, resolves variable bindings across scope chains, and schedules asynchronous callbacks between the call stack, microtask queue, and macrotask queue.

Work through this track sequentially. The early lessons establish the execution model (event loop, closures, this binding, hoisting, and the Temporal Dead Zone), while the middle and later lessons apply those mechanics to asynchronous concurrency, prototype inheritance, memory leak diagnosis, event delegation, and browser storage boundaries.

What Interviewers Evaluate in This Track

  • Tracing interleaved Promise microtasks, queueMicrotask, requestAnimationFrame, and setTimeout macrotasks
  • Implementing debounce, throttle, deep clone, and Promise combinators (all, allSettled, race) from scratch
  • Diagnosing detached DOM nodes, closure retention, and uncleaned event listeners in Chrome DevTools Memory profiles
  1. 1

    JavaScript Event Loop: Microtasks vs Macrotasks (Interview-Ready)

    ~10 min

    A practical, interview-focused guide to the JS event loop: call stack, Web APIs, task queues, microtasks vs macrotasks, and common trick questions with real examples.

  2. 2

    JavaScript Closures Explained (With Interview Questions)

    ~14 min

    Closures in plain English: lexical scope, how closures work, common interview traps (loops + setTimeout), and practical use cases like memoization and data hiding.

  3. 3

    JavaScript 'this' Keyword: 4 Rules, Polyfills & Arrow Functions

    ~18 min

    Master the JavaScript 'this' keyword: binding precedence hierarchy, whiteboard polyfills for call/apply/bind, 'new' binding mechanics, and arrow function lexical scoping.

  4. 4

    JavaScript Hoisting + Temporal Dead Zone (var vs let/const)

    ~12 min

    Interview-ready explanation of hoisting and the Temporal Dead Zone: what actually gets hoisted, why let/const behave differently, and common trick questions with outputs.

  5. 5

    Promises Deep Dive: Chaining, Errors, all vs allSettled (Interview-Ready)

    ~18 min

    A practical guide to JavaScript Promises for interviews: states, chaining rules, error propagation, polyfills for all/allSettled, and concurrency patterns.

  6. 6

    Async/Await Pitfalls: Parallel vs Sequential (With Examples)

    ~12 min

    Interview-focused async/await guide: how await works, common mistakes, parallelizing with Promise.all, error handling patterns, and when to avoid await-in-loop.

  7. 7

    Memory Leaks in Frontend Apps: Causes, Detection, and Fixes (Interview-Ready)

    ~15 min

    A practical guide to frontend memory leaks: the most common causes (listeners, timers, DOM refs, closures), how to detect them in Chrome DevTools, and how to fix them.

  8. 8

    Map vs Set vs WeakMap vs WeakSet: When to Use Which (Interview-Ready)

    ~12 min

    A practical guide to Map/Set and WeakMap/WeakSet: key differences, memory behavior, real use cases, and common interview questions with examples.

  9. 9

    Debounce vs Throttle: Differences, Use Cases, and Implementations

    ~16 min

    Interview-ready guide to debounce vs throttle: how they work, when to use each, and clean JavaScript implementations (with leading/trailing options).

  10. 10

    JavaScript Prototypes & the Prototype Chain (Interview-Ready)

    ~15 min

    A practical guide to prototypes in JavaScript: prototype chain, __proto__ vs prototype, new operator, inheritance patterns, and common interview questions.

  11. 11

    JavaScript Modules: ESM vs CommonJS (import/export vs require)

    ~20 min

    An interview-ready guide to JavaScript modules: ESM vs CommonJS, named vs default exports, live bindings, top-level await, Node interop, and the TypeScript settings that make it all line up.

  12. 12

    JavaScript Equality & Type Coercion: == vs === (With Interview Traps)

    ~22 min

    A deep, interview-ready guide to JavaScript equality: == vs ===, truthy/falsy, ToPrimitive coercion, Object.is, NaN, -0, and common output questions.

  13. 13

    JavaScript Error Handling: try/catch, Custom Errors, and Patterns

    ~20 min

    A deep, practical guide to error handling in JavaScript for frontend interviews: sync vs async errors, try/catch with async/await, custom error classes, cause, and user-friendly error patterns.

  14. 14

    JavaScript Arrays for Interviews: map/filter/reduce + Time Complexity

    ~22 min

    A deep, interview-ready guide to JavaScript arrays: core methods, common patterns, time/space complexity, mutation pitfalls, and practical questions with solutions.

  15. 15

    JavaScript Objects: References, Cloning, and Immutability (Deep vs Shallow)

    ~20 min

    A deep interview-ready guide to object references in JavaScript: shallow vs deep copies, structuredClone, JSON pitfalls, immutability patterns, and common bugs.

  16. 16

    JSON in JavaScript: Serialization Pitfalls + Safe Parsing Patterns

    ~18 min

    A deep guide to JSON in JavaScript for interviews and real apps: JSON.stringify behavior, undefined/functions, dates, BigInt, circular references, and safe parsing/validation patterns.

  17. 17

    Browser Storage: localStorage vs sessionStorage vs IndexedDB (When to Use Which)

    ~22 min

    A deep, interview-ready guide to browser storage: cookies vs Web Storage vs IndexedDB, quotas, security pitfalls (XSS), JSON patterns, and best practices for modern frontend apps.

  18. 18

    Event Delegation in JavaScript: How It Works + Performance Patterns

    ~18 min

    A deep, interview-ready guide to event delegation: bubbling/capturing, delegation patterns, performance benefits, common pitfalls, and clean implementations for real UIs.

  19. 19

    CORS + Cookies + SameSite: Frontend Basics (Why Requests Fail)

    ~22 min

    A deep, interview-ready guide to CORS for frontend developers: preflight, simple requests, credentials, cookies, SameSite, and how to debug common failures.

  20. 20

    Browser Rendering Pipeline: Layout (Reflow) vs Paint vs Composite (Performance)

    ~24 min

    A deep, interview-ready guide to how browsers render pages: DOM/CSSOM, render tree, layout (reflow), paint, compositing, GPU layers, and practical performance fixes.

  21. 21

    HTTP Caching for Frontend: Cache-Control, ETag, and Practical Strategies

    ~24 min

    A deep, interview-ready guide to HTTP caching: Cache-Control directives, ETag/If-None-Match, Last-Modified, CDN caching, and how frontend apps should leverage caching safely.

  22. 22

    Service Workers + Offline Caching (Interview-Ready Guide)

    ~22 min

    A deep, practical guide to Service Workers: lifecycle, caching strategies (cache-first, network-first, stale-while-revalidate), offline support, and common pitfalls.

  23. 23

    Core Web Vitals (LCP, CLS, INP): Frontend Performance That Actually Matters

    ~24 min

    A deep, practical guide to Core Web Vitals for frontend interviews: what LCP/CLS/INP measure, common causes, how to debug in DevTools, and high-impact fixes.

  24. 24

    Frontend Testing: Unit vs Integration vs E2E (What Interviewers Want)

    ~22 min

    A deep, interview-ready guide to frontend testing: what to test, unit vs integration vs e2e tradeoffs, reliable patterns, and common anti-patterns.

Want TypeScript + React roadmaps next?

Practice with articles