Know the answer, and the follow-up

A course for frontend interviews: 199 questions with model answers and the 597 follow-ups interviewers ask next, 94 machine coding problems with tests, 5 system design labs, and every company guide on the site. ₹449, once.

See what's free

Bought it already? Open your course

A question from the course, and two of its follow-ups

Core JavaScript & RuntimeHard

playground.js
console.log('1'); setTimeout(() => console.log('2'), 0); Promise.resolve().then(() => console.log('3')); queueMicrotask(() => console.log('4')); (async () => {  console.log('5');  await null;  // suspends here; the rest becomes a microtask  console.log('6');})(); console.log('7');

The question

What is the exact output of this code?

Pick one. The interviewer has two more after it.

All 20 company guides come with the course

What the course gives you

See the syllabus

Advanced React & Next.js, 15 questions

Q3

Explain reconciliation and why keys matter.

MediumReactInterviewMeta
solution.js
// BUG: index as key - state follows position, not identity{items.map((item, i) => <Row key={i} item={item} />)} // CORRECT: stable identity from the data{items.map((item) => <Row key={item.id} item={item} />)} // Type change = unmount + remount, all child state is destroyed

Follow-up prompts

  • Show a concrete bug caused by key={index} in a list with text inputs.
  • When is using the array index as a key genuinely fine?

Inside the reader

The tools around the 199 questions, in the course's reader.

  • Study plans

    A 15-day and a 30-day plan, a day at a time, with your progress through each.

    15-Day Crash CourseDay 3 of 15

    1. 3
    2. 4
    3. 5
    4. 6
    5. 7
    6. 8
    7. 9
    8. 10
    9. 11
    10. 12
    11. 13
    12. 14
    13. 15
  • Quiz mode

    Answers stay hidden until you reveal them, so you answer first.

    How does the event loop actually run your code?

    Show answer
  • Exam mode

    Timed exams: 5 questions in 5 minutes, 10 in 10 or 20 in 20, scored at the end.

    07:42 leftQuestion 3 of 10

    QuickStandardFull

  • Topic map

    About 30 core topics, from the event loop to the Virtual DOM, ranked by how much they matter.

  • Focus mode

    Hides the menus and leaves the question you are reading.

  • Search and shortcuts

    ⌘K or Ctrl K searches all 199 questions and opens any lab, a random question, or quiz, exam or focus mode. Ask it something instead and the AI answers from the course, with links to the questions it used.

    closuresK

    • Run Code
    • Random Question
    • Toggle Quiz Mode
    • Toggle Exam Mode
  • Code that runs

    86 questions have code you can edit and run on the page, and every answer's code is highlighted.

    playground.jsRun Code
    const once = (fn) => {
      let done = false;
      return (...args) => done ? undefined : ((done = true), fn(...args));
    };

    > ran once

  • Progress, on any device

    The modules you finish, the problems you solve and your CSS battle scores are saved to your account.

    Modules finished3 of 12

    Problems solved18 of 94

    CSS battles cleared2 of 8

Win a CSS battle, then defend your plan

Two more parts of the course, working on this page. Match the target in one of its 8 CSS battles, then see how the AI interviewer grades a plan before a line of code is written.

CSS battle: Centered CircleEasy

Target
Yours

Match 31%

The colour is off. Try another swatch.

/* Make yours match the target */

.target {

110px;
190px;
0%;
background:
#b5e0ba;

}

Interview simulation

The AI interviewer grades your plan before you write code

Implement Array.prototype.map

The plan, written before any code

Read arr.length once, allocate a result array, loop with a for loop calling cb(element, index, array). No mutation. Sparse arrays should preserve holes, and a non-function callback should throw a TypeError.

The interviewer's reply appears here.

A real plan and the reply the AI interviewer gave it, word for word. In the course you write your own.

The syllabus

199 questions in 12 modules. Each answer is written the way you would give it in the room, with the follow-ups that come after it, and 86 of them have code you can run on the page.

The full curriculum

Where the 199 questions are, module by module

    • How does the event loop actually run your code, and why isn't setTimeout(fn, 0) immediate?
    • What is the exact output of this code? Explain the microtask queue.
  1. HTML5 & CSS Architecture

    17questions

    • Why does the HTML element you choose matter? Make the case for semantic markup.
    • Explain the box model, and why box-sizing: border-box is the default everyone sets.
    • What problem does React actually solve, and what is the Virtual DOM really doing?
    • When does a React component re-render, and what actually stops a wasteful one?
    • How do you approach a machine coding round so you don't run out of time?
    • Design an LRU Cache with O(1) get and put.
  2. System Design

    44questions

    • Designing WhatsApp Web
    • Designing a URL Shortener
    • Designing a File Sharing System
    • and 2 more
    • Build a Search Autocomplete (debounced, cached, race-safe)
    • Build an Infinite Scroll feed with a reusable data-fetching hook
  3. Web Security

    16questions

    • Cross Site Scripting
    • Cross-Site Request Forgery
  4. Accessibility (a11y)

    9questions

    • What makes a web app accessible? Explain WCAG and the POUR principles.
    • Semantic HTML vs 'div soup' — why does it matter for accessibility?
  5. Web Performance & Core Web Vitals

    8questions

    • What are Core Web Vitals (LCP, CLS, INP)? What does each measure and what counts as 'good'?
    • Walk through the Critical Rendering Path — how does the browser turn HTML, CSS, and JS into pixels?
  6. HTTP, Caching & Networking

    8questions

    • Explain the HTTP status code families (2xx/3xx/4xx/5xx) and the ones that actually come up.
    • HTTP methods and idempotency: GET/POST/PUT/PATCH/DELETE — what do 'safe' and 'idempotent' mean?
  7. Behavioral & Tips

    14questions

    • How should you structure a behavioral answer? STAR, CAR, and what interviewers actually score.
    • Build a story bank: the preparation method that makes every question easy.
  8. TypeScript for Frontend Interviews

    19questions

    • TypeScript Fundamentals
    • Generics & Advanced Types
    • Utility Types Deep Dive
    • and 1 more

Learn free. Pay once for the rest.

Most of Coding Activist is free and stays free, and you need no account to use it. The course opens everything else, for one payment.

Free

₹0

No account needed.

  • All 14 roadmaps, with what to learn and in what order
  • The job board, with new jobs every day, sorted by your resume
  • 8 system design rounds to draw and load-test
  • Every machine coding problem to read, and 5 to solve with tests and solutions
  • The opening of all 20 company guides, and the first 5 answers in the Razorpay and Google guides

Free account

₹0

Sign up with Google or an email address.

Everything in Free, plus

  • 3 AI replies a day: a score on an answer, a hint, a resume check against a job, or a review of your design
  • A timed mock interview a day on the Razorpay and Google guides
  • The model answers to the follow-ups in the system design rounds
  • The problems you solve and the roadmap topics you finish, saved to your account

The course

₹449once

Lifetime access. It never renews.

GreatFrontEnd lifetime, India price: ₹7,200

199 questions across 12 modules

Everything in a free account, plus

  • 199 interview questions in 12 modules, each with a model answer and its follow-ups
  • 5 system design labs, an event loop simulator, an interview simulation, XSS and accessibility labs, 8 CSS battles and 10 bugs to fix
  • All 20 company guides, with every model answer
  • All 94 machine coding problems, with tests and solutions
  • Mock interviews on every guide, and up to 300 AI replies a day
  • A 15-day and a 30-day study plan
  • Every module and lab added later

Checkout opens in a new tab.

GreatFrontEnd's price is the lifetime price its pricing page shows in India, checked October 2026.

Bought it already? Open your course

Questions, answered

Something else on your mind? Write to support@codingactivist.com.

Ready for the
follow-up?

Try a free problem
blur