Skip to content

Frontend Developer roadmap

Frontend Developer roadmap for 2–5 years experience

Move up to SDE-2 frontend roles

With 2–5 years of experience, interviews shift from "do you know it" to "can you build it well under time pressure". Machine coding and JavaScript depth decide most loops, and light frontend system design starts to appear.

YOUR ROADMAP

What to study, step by step.

6 steps. Each topic says what to learn and has a button to practise it.

  • Must doInterviews ask this. Do not skip.
  • ImportantDo it if you can.
  • OptionalOnly if you have extra time.
Not started yetYou finished 0 of 18 topics (0 of 10 must-do)

Saved on this device. No login needed.

Jump to a step:

  1. Step 1 · Weeks 1–2 (2 weeks)

    JavaScript & browser mastery

    Close the gaps everyday work never forced you to learn.
    Must do

    JavaScript fundamentals

    Scope, closures, this and prototypes come up in almost every frontend interview, usually as output questions.

    What to learn
    • var / let / const, hoisting and the temporal dead zone
    • Closures and lexical scope
    • this binding rules, call / apply / bind
    • Prototypes and class syntax
    • Equality, coercion and common output puzzles
    • Array and object methods you use daily

    Expect tricky output questions and follow-up "why" questions.

    Must do

    Async JavaScript & the event loop

    Explain what runs when: call stack, microtasks, macrotasks and rendering.

    What to learn
    • Callbacks, promises and async / await
    • Microtask vs macrotask queue ordering
    • Promise.all / allSettled / race / any
    • Error handling in async code
    • fetch, AbortController and cancellation

    Be able to order microtasks, macrotasks and rendering.

    Must do

    JavaScript implementations & polyfills

    Writing core utilities from scratch proves you understand the language, and Indian product companies ask for them often.

    What to learn
    • debounce and throttle (with leading / trailing options)
    • Array.prototype.map / filter / reduce polyfills
    • Function.prototype.bind and currying
    • Promise.all and a basic Promise implementation
    • Deep clone, flatten and an event emitter

    Promise.all, debounce with leading edge, deep clone, curry.

    Important

    DOM, events & browser APIs

    Know how the browser handles events, storage and rendering without a framework in the way.

    What to learn
    • Event bubbling, capturing and delegation
    • localStorage, sessionStorage, cookies and IndexedDB
    • Critical rendering path: parse, style, layout, paint, composite
    • IntersectionObserver and ResizeObserver
    • History API and client-side routing basics

    You are done with this step when:You can write five common polyfills from memory and explain the event loop with a diagram.

  2. Step 2 · Weeks 3–5 (3 weeks)

    React in depth

    Explain rendering and state decisions, not just use the APIs.
    Must do

    React internals & performance

    Explain why a component re-renders and how to fix it without sprinkling memo everywhere.

    What to learn
    • Reconciliation, keys and the virtual DOM
    • useMemo, useCallback, React.memo and when they help
    • useRef, useLayoutEffect and imperative escape hatches
    • Suspense, lazy loading and concurrent rendering
    • Profiling with React DevTools
    Must do

    State management & data fetching

    Separate server cache from client state, and choose the lightest tool that works.

    What to learn
    • Context and its re-render cost
    • Redux Toolkit or Zustand for shared client state
    • React Query / SWR for server state, caching and refetching
    • Optimistic updates and error states
    • Normalising nested API data

    Be clear on server cache vs client state.

    Must do

    TypeScript for frontend

    Most product teams ship TypeScript; typing props, hooks and API responses is expected.

    What to learn
    • Types vs interfaces, unions and narrowing
    • Generics in functions and components
    • Utility types: Partial, Pick, Omit, Record
    • Typing props, events, refs and hooks
    • Typing API responses safely

    Generics in components and typed custom hooks.

    Important

    Rendering strategies & Next.js

    Choose between CSR, SSR, SSG, ISR and server components based on SEO, freshness and cost.

    What to learn
    • CSR vs SSR vs SSG vs ISR trade-offs
    • Server components and the client boundary
    • Routing, layouts and data fetching in the App Router
    • Caching and revalidation
    • Hydration errors and how to avoid them

    You are done with this step when:You can find and fix an unnecessary re-render with the Profiler and explain the fix.

  3. Step 3 · Weeks 6–7 (2 weeks)

    Machine coding

    Build polished components under a 60–90 minute clock.
    Must do

    Machine coding rounds

    Build a working UI component in 60–90 minutes with clean structure, state and edge cases.

    What to learn
    • Clarify requirements and sketch the component tree first
    • Common asks: autocomplete, carousel, tabs, modal, star rating, nested comments, kanban
    • State shape, derived state and side effects
    • Edge cases: empty, loading, error and keyboard use
    • Leave time to explain trade-offs and what you would add

    Practise at least eight problems, timed, then refactor each.

    Important

    Frontend testing

    Test behaviour, not implementation, and know which layer catches which bug.

    What to learn
    • Unit tests with Jest or Vitest
    • Component tests with React Testing Library
    • End-to-end tests with Playwright or Cypress
    • Mocking network calls
    • Testing pyramid and CI quality gates
    Important

    Accessibility (a11y)

    Accessible UIs are better UIs, and senior roles are expected to make them the default.

    What to learn
    • Semantic HTML before ARIA
    • Keyboard navigation and focus management
    • Accessible names, labels and live regions
    • Colour contrast and WCAG 2.2 AA
    • Testing with a screen reader and axe

    Keyboard support is an easy way to stand out.

    You are done with this step when:Autocomplete with debounce and caching, built in under 75 minutes with clean structure.

  4. Step 4 · Weeks 8–9 (2 weeks)

    Performance, networking & security

    Speak about production problems with numbers.
    Must do

    Web performance & Core Web Vitals

    Measure first, then fix the loading, rendering and interaction costs users actually feel.

    What to learn
    • LCP, INP and CLS: what they measure and how to improve them
    • Code splitting, lazy loading and bundle analysis
    • Image formats, responsive images and font loading
    • Virtualising long lists
    • Lighthouse and the Performance panel
    Must do

    HTTP, APIs & auth for frontend

    Understand what happens between the browser and the server, because most production bugs live there.

    What to learn
    • HTTP methods, status codes and headers
    • REST vs GraphQL from the client side
    • CORS and preflight requests
    • Cookies vs tokens, sessions and refresh flows
    • Browser and CDN caching (Cache-Control, ETag)
    Important

    Frontend security

    Prevent the attacks that start in the browser.

    What to learn
    • XSS and safe rendering of user content
    • CSRF and SameSite cookies
    • Content Security Policy
    • Clickjacking and iframe sandboxing
    • Storing tokens safely

    You are done with this step when:A performance story from your work with before-and-after metrics.

  5. Step 5 · Weeks 10–11 (2 weeks)

    Frontend system design basics

    Design one feature end to end: components, data, API and edge cases.
    Important

    Frontend system design

    Design a large client application: components, data flow, API contract, caching, rendering and performance.

    What to learn
    • A framework: requirements, components, data model, API, optimisations
    • Classic prompts: news feed, autocomplete, chat, video player, dashboard, collaborative editor
    • Pagination, normalised client cache and optimistic UI
    • Offline support, real-time updates (WebSocket / SSE) and retries
    • Observability: error tracking, RUM and feature flags

    Focus on component and data design: autocomplete, infinite feed, image carousel.

    Important

    AI for frontend work

    AI assistants are now part of everyday frontend work, so you need to know how they work, where they go wrong and how to check what they produce.

    What to learn
    • How LLMs work at a high level: tokens, context window and why they hallucinate
    • Prompting well: give context, constraints and examples, then iterate
    • Using AI coding assistants for components and tests, then reviewing the diff line by line
    • Calling an LLM through your backend and streaming responses into the UI, never exposing API keys in the browser
    • Prompt injection and unsafe rendering: treat model output as untrusted content
    • Responsible use: no confidential code or user data in public tools, and follow your company policy

    Build one feature on an LLM API end to end, with loading, streaming and error states, and review AI-written code as strictly as any pull request.

    You are done with this step when:Three designs practised aloud with a clear structure.

  6. Step 6 · Week 12 (1 week)

    DSA refresh & stories

    Stay sharp for the screening round and tell your impact clearly.
    Important

    Data structures & algorithms

    Online assessments and at least one round still test problem solving, mostly at easy-to-medium level.

    What to learn
    • Arrays, strings and hash maps
    • Two pointers and sliding window
    • Stacks, queues and recursion
    • Trees and BFS / DFS (the DOM is a tree)
    • Big-O for time and space

    Keep medium arrays, strings, trees and sliding window warm.

    Must do

    Behavioral & project stories

    Explain what you built, the decisions you made and what you learned, in a structured way.

    What to learn
    • STAR structure for answers
    • A 2-minute walkthrough of your best project
    • Stories for conflict, failure, deadlines and feedback
    • Why this company and this role

    Prepare ownership, conflict and failure stories from real work.

    You are done with this step when:Five STAR stories written and one full mock interview done.

  7. You are interview-ready

    Now tailor your resume to each job and start applying.

SAVE YOUR TIME

Don't waste time on these (yet).

Popular topics that will not help your interviews at this stage.

  • Beginner React courses

    You already know the basics. Use question banks to find specific gaps instead of rewatching tutorials.

  • LeetCode hard and competitive programming

    Frontend loops at this level weigh machine coding and depth far more than hard algorithms.

  • Class component lifecycle trivia

    Most codebases and interviewers focus on hooks now. Know the mapping, not every legacy method.

  • Kubernetes and deep DevOps

    Unless the role is full stack, knowing how your app is built and deployed is enough.

  • Building micro-frontends

    Know what they are and when they help. Implementation details are a senior-level conversation.

THE INTERVIEW

What happens in the interview.

A typical set of rounds at this stage. Small startups may do fewer.

  1. 1

    Screening

    A JavaScript and DSA round, usually one medium problem plus output questions.

  2. 2

    Machine coding

    Build a component such as nested comments, a kanban board or autocomplete in 60–90 minutes.

  3. 3

    JavaScript & React deep dive

    Event loop, closures, rendering, state management and performance.

  4. 4

    Frontend design (light)

    Design a feature: component tree, data model, API and loading strategy.

  5. 5

    Hiring manager

    Ownership, impact, collaboration and why you are moving.

WHAT INTERVIEWS ASK MOST

Where to spend your time

Share of interview time, roughly, for frontend developer roles at this stage.

  • JavaScript & React depth30%
  • Machine coding25%
  • DSA & problem solving20%
  • Frontend system design15%
  • Behavioral & leadership10%

FOR YOUR RESUME

What to show on your resume.

  • Performance wins with numbers, for example LCP reduced from 4.1s to 1.8s
  • A feature you owned from design to release, and its user or business impact
  • Reusable components or hooks adopted by your team
  • Test coverage or quality improvements you led

NOT YOUR LEVEL?

Pick a different level.

A LITTLE MORE CLARITY

Frontend Developer roadmap: common questions

What is a machine coding round?

You build a working UI component, such as autocomplete or a kanban board, in 60–90 minutes. Interviewers judge structure, state handling, edge cases and how you explain trade-offs, not only whether it works.

How much DSA do 2–5 year frontend developers need?

Enough to clear one medium problem in a screening round. Most of your time should go to JavaScript depth, React and machine coding.

Is frontend system design asked at SDE-2?

Often in a lighter form: designing one feature or component end to end. Full-scale system design becomes central at senior level.

OTHER JOBS

All roadmaps

BUILD YOUR NEXT OPPORTUNITY

Start step 1 today.

Practise coding, system design and interview questions for free. Sign in to save progress on any device.

Get Started Free