Frontend Interview Questions and Answers
763 questions with clear, current answers and a code example for each. Pick a topic to browse, or open the study app to practice with progress tracking.
Next.js interview questions
199 questions
Next.js interview questions on the App Router, Server Components, Server Actions, caching and revalidation, routing, rendering strategies, middleware and performance.
- What is Next.js and how does it differ from React?
- What are the main features of Next.js?
- What is the difference between CSR, SSR, SSG, and ISR?
- What is the Pages Router in Next.js?
React interview questions
200 questions
React interview questions on components, state, rendering, reconciliation, context, performance, React 19 features and the patterns interviewers ask about most.
All 200 React questionsJavaScript interview questions
200 questions
JavaScript interview questions on closures, scope, the event loop, promises and async/await, prototypes, this, modules, and the tricky output questions interviewers love.
- What is JavaScript?
- What is the difference between var, let, and const?
- What is hoisting in JavaScript?
- What are the data types in JavaScript?
HTML & CSS interview questions
100 questions
HTML and CSS interview questions on semantics, accessibility, the box model, flexbox and grid, specificity, responsive design and modern CSS like :has() and container queries.
- What is HTML?
- What is the structure of an HTML document?
- What is <!DOCTYPE html>?
- Difference between HTML4 and HTML5?
React Hooks interview questions
14 questions
React Hooks interview questions on useState, useEffect, useMemo, useCallback, useRef, custom hooks, the rules of hooks and the newer React 19 hooks.
- What is useState and how does it work?
- What is useEffect and what are its common use cases?
- What is useContext and how does it prevent prop drilling?
- What is useReducer and when should you use it over useState?
AI Agents & LLMs interview questions
50 questions
AI agent and LLM interview questions on transformers, tokens, prompting, RAG, embeddings, tool calling, MCP, agent loops, memory, multi-agent systems, evals and safety, each with sources.
- What is a large language model (LLM)?
- What are tokens, and why do they matter?
- How does self-attention in a transformer work?
- What is a context window?