Coming soon

AI Agents & LLM interview questions

Now covers React 19 & Next.js 15

Crack the frontend questions you'll actually be asked.

Clear answers and runnable code for Next.js, React, JavaScript and CSS, plus timed coding tasks. Free, no account needed.

  • ✓Easy to hard
  • ✓Runnable code in every answer
  • ✓Saves your progress
React HooksMedium

What is useReducer and when should you use it over useState?

useReducer is an alternative to useState that is deeply inspired by Redux. It is designed for managing complex state objects or state logic that involves multiple sub-values or interconnected…

import React, { useReducer } from 'react'; // 1. Define initial stateconst initialState = {  data: [],  loading: false,  error: null};
0:00 / 0:28

Pick your battle.

Every topic runs from easy warm-ups to hard interview questions.

Browse everything →

Three steps.

  1. 1

    Choose a topic and difficulty

    5 topics, each split into Easy, Medium and Hard. Refresh the basics, or jump straight to Hard if your interview is close.

  2. 2

    Read the answer, then run the code

    Every answer comes with a code example, and 288 JavaScript and HTML/CSS examples open in the playground in one click.

  3. 3

    Mark what you know

    Mastered, review later or bookmarked: progress is saved in your browser, so you always see what is left.

Start gentle. Finish sharp.

713 questions across 5 topics. Pick a level to jump straight in.

Open the playgroundJS · TS · HTML/CSS

Free · no account

Interview coming up?

Answer your first question in under a minute. Short answer first, runnable code right after.

interview questions
0
interview questions
timed coding tasks
0
timed coding tasks
topics, easy to hard
0
topics, easy to hard
examples you can run
0
examples you can run