Frontend Engineer · interview questions

Frontend Engineer interview questions: definition

From the role's core and recommended topics, most asked first. Filter by the kind of answer the question wants.

React Developer Core 16

  1. Most asked What are the most important changes in React 19?
  2. Most asked What is concurrent rendering in React?
  3. Most asked What are the pitfalls of fetching data in `useEffect`, and how do you avoid race conditions?
  4. What is `useFormStatus` and where must it be used?
  5. What does the `use()` API do?
  6. What is the React Compiler and how does it affect `useMemo`/`useCallback`?
  7. What is the compound components pattern?
  8. What are stale closures in React hooks and how do you fix them?
  9. What resource preloading APIs does React DOM provide?
  10. What is the `<Activity>` component (React 19.2)?
  11. What problem does `useEffectEvent` (React 19.2) solve?
  12. What is `useSyncExternalStore` for?
  13. What are the trade-offs between Tailwind, CSS Modules and CSS-in-JS in React?
  14. What are micro-frontends and what are their trade-offs in React?
  15. What breaking changes should you check when upgrading to React 19?
  16. What is `useInsertionEffect` for?

TypeScript Developer Core 33

  1. Most asked What is TypeScript and what problems does it solve?
  2. Most asked What are the differences between `interface` and `type` aliases?
  3. Most asked What is structural typing in TypeScript?
  4. Most asked What is type narrowing and what techniques does TypeScript support?
  5. Most asked What are discriminated unions and why are they powerful?
  6. Most asked What are generics and how do constraints work?
  7. Most asked What are mapped types? Show how `Partial` or `Readonly` could be implemented.
  8. Most asked What does `as const` do?
  9. Most asked What are union types and how do you work with them safely?
  10. What are template literal types?
  11. What are covariance and contravariance in TypeScript function types?
  12. What are declaration files (`.d.ts`) and how do you type a JavaScript library without types?
  13. What are `import type`, `isolatedModules` and `verbatimModuleSyntax`?
  14. What are index signatures and how do they relate to `Record`?
  15. What are project references and when do you use them?
  16. What are excess property checks and when do they apply?
  17. What changed with decorators in TypeScript 5.0?
  18. What are `using` declarations (TypeScript 5.2)?
  19. What are `const` type parameters (TS 5.0) and `NoInfer` (TS 5.4)?
  20. What is `strictPropertyInitialization` and the definite assignment assertion (`!:`)?
  21. What do `Parameters`, `ConstructorParameters`, `InstanceType` and `ReturnType` give you?
  22. What does typescript-eslint add beyond the compiler?
  23. What is the Result pattern in TypeScript and when is it preferable to exceptions?
  24. What is a `unique symbol` type?
  25. What do the `target` and `lib` compiler options control?
  26. What are generic defaults and when are they useful?
  27. What are phantom types and how do they relate to branding?
  28. What is contextual typing?
  29. What is literal type widening?
  30. What is the native TypeScript compiler port (TypeScript 7 / tsgo)?
  31. What do you do when TypeScript infers a generic type parameter too broadly or as `unknown`?
  32. What should teams expect from TypeScript 6.0?
  33. What TypeScript practices do you look for in code reviews?

HTML & CSS Core 20

  1. Most asked What is HTML?
  2. Most asked What is HTML5, and how is it different from HTML 4?
  3. Most asked What is semantic HTML, and why does it matter?
  4. Most asked What is the alt attribute for, and what makes good alt text?
  5. Most asked What input types and validation attributes did HTML5 add?
  6. Most asked What is ARIA, and what is the first rule of ARIA?
  7. Most asked What does <!DOCTYPE html> do?
  8. What goes in the head of an HTML document, and what goes in the body?
  9. What do the autocomplete and inputmode attributes do?
  10. What does the viewport meta tag do?
  11. What is structured data (JSON-LD), and why add it?
  12. What is the DOM, and how does the browser build it from HTML?
  13. What are data-* attributes for?
  14. What do the dialog element and the popover attribute provide?
  15. What does the sandbox attribute on an iframe do?
  16. What are resource hints such as preload and preconnect?
  17. What are HTML entities and when do you need them?
  18. What is the details element used for?
  19. What is the template element?
  20. What are web components?

Next.js Developer Core 30

  1. Most asked What is Next.js and what problems does it solve on top of React?
  2. Most asked What are the differences between the App Router and the Pages Router?
  3. Most asked What are Server Actions and how do you use them for mutations?
  4. Most asked What is Next.js middleware (renamed `proxy` in Next.js 16) and what should it be used for?
  5. Most asked What does `next/image` do?
  6. What are route groups, parallel routes and intercepting routes?
  7. What are `usePathname`, `useSearchParams` and `useParams`, and what's the Suspense caveat?
  8. What are the options for deploying a Next.js application?
  9. What is a Data Access Layer (DAL) and why is it recommended in Next.js?
  10. What security considerations apply specifically to Server Actions and Server Components?
  11. What is the RSC payload?
  12. What does `next/font` provide?
  13. What is `useOptimistic` and how does it work with Server Actions?
  14. What is Turbopack?
  15. What is Partial Prerendering (PPR) / Cache Components?
  16. What does the `'use cache'` directive do?
  17. What is the `after()` API in Next.js 15?
  18. What styling options work with the App Router and Server Components?
  19. What does `generateStaticParams` do and what is `dynamicParams`?
  20. What are route segment config options?
  21. What does Next.js do for accessibility, and what remains your job?
  22. What is `output: 'export'` and what are its limitations?
  23. What is the `next/form` component?
  24. What do the `server-only` and `client-only` packages do?
  25. What breaking changes should you expect when upgrading to Next.js 15?
  26. What are notable changes in Next.js 16?
  27. What is Draft Mode and how is it used with a headless CMS?
  28. What is required in the root layout of an App Router app?
  29. What is the React Compiler and how does it relate to Next.js?
  30. What do the symbols in `next build` output (○, ●, ƒ) mean?

Vue.js Developer Recommended 21

  1. Most asked What are composables, and why did they replace mixins?
  2. Most asked What security risks should Vue developers watch for?
  3. Most asked What are template refs, and why do you need nextTick?
  4. Most asked What are the main breaking changes when migrating from Vue 2 to Vue 3?
  5. What does <script setup> give you?
  6. What is Vue.js, and what does 'progressive framework' mean?
  7. What are shallowRef, shallowReactive and markRaw for?
  8. What router history modes exist, and what server configuration does each need?
  9. What are async components and Suspense?
  10. What is Teleport used for?
  11. What does KeepAlive do?
  12. What is a Vue plugin, and how do you write one?
  13. What are the pitfalls of deep watchers?
  14. What event modifiers does Vue provide?
  15. What is a writable computed, and when is it useful?
  16. What are fragments and attribute fallthrough in Vue 3?
  17. What role does Vite play in Vue development?
  18. What does defineExpose do?
  19. What does the `.value` unwrapping rule look like in templates, reactive objects and arrays?
  20. What are Vue's official style-guide rules you consider essential?
  21. What does v-memo do, and when would you use v-once?

Tailwind CSS Recommended 6

  1. Most asked What is Tailwind CSS and what does 'utility-first' mean?
  2. Most asked What changed in Tailwind CSS v4 compared with v3?
  3. What are container queries in Tailwind and when do you use them?
  4. What are arbitrary values and when should you avoid them?
  5. What is Preflight and how do you style rich text from a CMS?
  6. What are good practices for writing Tailwind in a team?

Web Security & WAF Recommended 22

  1. Most asked What is the OWASP Top 10 and which risks does it currently highlight?
  2. Most asked What is Cross-Site Scripting (XSS) and how do you prevent it?
  3. Most asked What is SQL injection and how do you prevent it?
  4. Most asked What is CSRF and how do you defend against it?
  5. Most asked What is a Web Application Firewall (WAF), and what can and can't it do?
  6. Most asked What is SSRF (Server-Side Request Forgery) and how do you prevent it?
  7. What is Content-Security-Policy and how do you roll it out?
  8. What is CORS, and what are common CORS misconfigurations?
  9. What are common security misconfigurations in web deployments?
  10. What are insecure deserialization vulnerabilities?
  11. What is clickjacking and how do you prevent it?
  12. What are best practices for TLS/HTTPS?
  13. What is threat modeling and how do you run one?
  14. What is an open redirect vulnerability?
  15. What is command injection and how do you prevent it?
  16. What is path traversal and how do you prevent it?
  17. What are software and data integrity failures?
  18. What are common cryptographic failures?
  19. What new security risks do LLM-powered features introduce?
  20. What does the OWASP API Security Top 10 add beyond the web Top 10?
  21. What is XXE (XML External Entity) injection?
  22. What is subdomain takeover?

Performance & Scalability Recommended 9

  1. Most asked What are the most common database-related performance problems?
  2. What are common concurrency bottlenecks in web applications?
  3. What are Core Web Vitals and how do you improve them?
  4. What is the 'chatty API' problem and how do you fix it?
  5. What is load shedding?
  6. What is graceful degradation?
  7. What changes when you scale to multiple regions?
  8. What are cold starts and how do you reduce them?
  9. What are common mistakes when benchmarking?

Testing Recommended 12

  1. Most asked What is the test pyramid, and is it still relevant?
  2. What is test-driven development (TDD) and when is it useful?
  3. What is contract testing?
  4. What is contract testing, and when would you use it?
  5. What is exploratory testing, and how do you do it well?
  6. What is property-based testing?
  7. What are snapshot tests, and what are their risks?
  8. What are ephemeral (preview) environments and why use them?
  9. What is chaos engineering?
  10. What should API tests verify?
  11. What are smoke tests?
  12. What is mutation testing?

Was this page helpful?

Report a mistake