Skip to content
DevFlash

Front-end interview practice

Practice the part of the interview where you write code.

Short JavaScript, TypeScript and React challenges. Each one comes with real tests that point to the requirement you missed, and everything runs in your browser.

Fix the failing testJoin the waitlist15 challenges at launch. The first 5 are free.

Counter.tsxCounter.test.tsx

import { useState } from "react";
type CounterProps = {
min: number;
max: number;
step?: number;
initial?: number;
};
const clamp = (value: number, min: number, max: number) => Math.min(max, Math.max(min, value));
export function Counter({ min, max, step = 1, initial = min }: CounterProps) {
const start = clamp(initial, min, max);
const [value, setValue] = useState(start);
return (
<div>
<button type="button" aria-label="Decrement" disabled={value <= min}
onClick={() => setValue((v) => clamp(v - step, min, max))}>-</button>
<output aria-live="polite" data-testid="count">{value}</output>
<button type="button" aria-label="Increment" disabled={value >= max}
onClick={() => setValue((v) => v + step)}>+</button>
<button type="button" onClick={() => setValue(start)}>Reset</button>
</div>
);
}

5 passed · 1 failed

  • starts at the initial value
  • moves by the given step
  • never goes above max, even when the step overshootsExpected "10", received "12"
  • never goes below min
  • counts every click, even in a quick burst
  • reset goes back to the initial value
Open it in the editorLoads the editor in this page. Your code runs only in your browser.

How it works

One challenge, start to finish

About 20 to 40 minutes each. Close to what a live coding round asks of you.

  1. 01

    Read what will be checked

    Every challenge lists the requirements an interviewer would check, edge cases included, so you know what done means before you start.

  2. 02

    Code until the tests pass

    Editor, preview, console and tests sit side by side. When a test fails, its name tells you which requirement is missing.

  3. 03

    Explain your choices

    Write a few lines on why you solved it that way, then compare with a commented solution that shows the trade-offs.

Challenges

The first 15

Written from scratch for DevFlash and ordered from state basics to debugging.

  1. 01Counter with limits and stepState and requirementsFree
  2. 02Normalize and dedupe tagsFunctions and edge casesFree
  3. 03Filterable list with empty stateRendering and searchFree
  4. 04Keyboard-friendly tabsState and accessibilityFree
  5. 05Form with validationEvents and errorsFree
  6. 06Cancelable debounceClosures and timingPro
  7. 07Client-side paginationIndexes and statePro
  8. 08Sortable tableTypes and compositionPro
  9. 09Async autocompleteRace conditions and mocksPro
  10. 10Cancelable data hookEffects and cleanupPro
  11. 11Cart with derived totalsState modelingPro
  12. 12Modal with focus managementAccessibilityPro
  13. 13Optimistic update that can failRolling back statePro
  14. 14Fix a stale closureDebuggingPro
  15. 15Diagnose extra rendersJustifying optimizationsPro
See the available challenges →

Plans

Start free, upgrade for the rest

Free covers the first five challenges for good. Pro is a monthly subscription you can cancel at any time.

Free

The first 5 challenges

$0

  • 5 challenges with tests and hints
  • Editor, live preview and console
  • Progress saved to your account
Join the waitlist

Pro

Monthly subscription

Price announced at launch

  • All 15 challenges, plus new ones once reviewed
  • Commented solutions that explain the trade-offs
  • A path from state basics to debugging
  • Cancel any time and keep your code
Join the waitlist

We are still testing the price. People on the waitlist hear it first.

guides

Study before you practice

Guides for each step of the hiring process: what is asked, how it is graded and how to train.

View all guides →

Roadmap

Where things stand

Updated as we ship. Nothing here is sold before it exists.

  • In-browser editor, preview and testsBuilt
  • The 5 free challenges, in English and PortugueseIn progress
  • Accounts and progress that follows you between devicesIn progress
  • The 10 Pro challenges and subscriptionsPlanned
  • Optional AI feedback on your explanationPlanned
  • More topics after the React pathPlanned

FAQ

Questions people ask first

Get the first 5 challenges

One email when the free challenges go live. Nothing else.

No spam. Unsubscribe in one click.