New

AI Agents & LLM interview questions are live

Now covers React 19 & Next.js 15

Prepare for 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 β†’
New track

AI Agents & LLMs

50 questions for AI engineer and full-stack interviews: transformers, prompting, RAG, tool calling, MCP, agent loops, evals and safety. Start with a 10-minute setup, then work through five stages in order. Each answer has an explanation, a TypeScript example and links to the papers and docs behind it.

questions
50
questions
cited sources
94
cited sources
stages
5
stages

Three steps.

Pick what to practise, learn it with code you can run, and keep track of what you know.

  1. 1

    Choose a topic and difficulty

    6 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.

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