Frontend Engineer · interview questions

Frontend Engineer interview questions: comparison

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

React Developer Core 24

  1. Most asked Explain React concept: controlled vs uncontrolled inputs.
  2. Most asked What does `useState` do and when should you use it?
  3. Most asked What does `useEffect` do and when should you use it?
  4. Most asked What does `useContext` do and when should you use it?
  5. Most asked What does `useRef` do and when should you use it?
  6. Most asked What does `custom hooks` do and when should you use it?
  7. Most asked What does `rules of hooks` do and when should you use it?
  8. Most asked What does `useMemo` do and when should you use it?
  9. Most asked What does `useCallback` do and when should you use it?
  10. Most asked When do you NOT need `useEffect`?
  11. What does `effect dependency mistakes` do and when should you use it?
  12. What does `cleanup in effects` do and when should you use it?
  13. Explain React concept: React elements vs components.
  14. Explain React concept: composition vs inheritance.
  15. What does `useReducer` do and when should you use it?
  16. What does `useTransition` do and when should you use it?
  17. Discuss Redux vs Context in React applications.
  18. Which accessibility practices matter most in React apps?
  19. What does `useLayoutEffect` do and when should you use it?
  20. What does `useId` do and when should you use it?
  21. What does `useDeferredValue` do and when should you use it?
  22. How do render props and higher-order components compare with custom hooks?
  23. When would you use `useImperativeHandle`?
  24. What is the difference between state and props in React?

TypeScript Developer Core 18

  1. Most asked Which built-in utility types do you use most, and what do they do?
  2. Most asked What does the `satisfies` operator do and how does it differ from a type annotation?
  3. Most asked Should you use enums or union types in TypeScript?
  4. Most asked Which `tsconfig` strictness options matter and what do they catch?
  5. Most asked What are type assertions (`as`) and the non-null assertion (`!`), and why should you use them sparingly?
  6. Most asked What are intersection types and how do they differ from interface extension?
  7. How do module systems (ESM vs CommonJS) interact with TypeScript settings?
  8. How do `tsc`, esbuild, SWC and Babel differ for TypeScript builds?
  9. What's the difference between an optional property (`x?: T`) and `x: T | undefined`?
  10. How do TypeScript access modifiers compare with JavaScript private fields?
  11. When would you use an abstract class versus an interface in TypeScript?
  12. What's the difference between `// @ts-ignore` and `// @ts-expect-error`?
  13. How do you type JSON values or recursive structures?
  14. What's the difference between `object`, `Object` and `{}` types?
  15. Should you use namespaces in modern TypeScript?
  16. What's the difference between `const`, `readonly` and `as const`?
  17. What's the difference between `string[]`, `Array<string>` and `[string]`?
  18. When should a function accept a union parameter versus using overloads?

HTML & CSS Core 13

  1. Most asked What is the difference between script, script async and script defer?
  2. Most asked Compare localStorage, sessionStorage and cookies.
  3. Which head tags matter for SEO and social sharing?
  4. Why set width and height on images, and when should you use loading="lazy"?
  5. What is the difference between a tag, an element and an attribute?
  6. What is the difference between block and inline elements?
  7. When should you use id and when class?
  8. What is the difference between article, section and div?
  9. What is the difference between absolute and relative URLs?
  10. What is the difference between GET and POST in an HTML form?
  11. What is the difference between canvas and SVG?
  12. What is the difference between strong and b, and between em and i?
  13. When do you use ul, ol and dl?

Next.js Developer Core 12

  1. Most asked What is the difference between Server Components and Client Components?
  2. Most asked What are Route Handlers and when should you use them instead of Server Actions?
  3. Which props can be passed from a Server Component to a Client Component?
  4. What's the difference between the Node.js and Edge runtimes in Next.js?
  5. What's the difference between React's `cache()` and Next.js's `unstable_cache`?
  6. How do API Routes in the Pages Router differ from Route Handlers?
  7. When does `<Link>` prefetch, and how can you control it?
  8. When would you use a custom Node server with Next.js, and what do you lose?
  9. How does Next.js compare with Remix/React Router v7 and Astro?
  10. When would you use `template.tsx` instead of `layout.tsx`?
  11. Compare Auth.js, Clerk and rolling your own authentication in Next.js.
  12. How do you rate limit Server Actions or Route Handlers in Next.js?

Vue.js Developer Recommended 8

  1. Most asked Options API or Composition API: what is the difference, and which would you use?
  2. Most asked ref or reactive: what is the difference, and when do you use each?
  3. Most asked How does Vue 3's reactivity system work, and how does it differ from Vue 2's?
  4. Most asked Pinia or Vuex: what is the difference, and why is Pinia now recommended?
  5. Most asked v-if or v-show: what is the difference?
  6. Most asked Vue or React: how would you compare them?
  7. What are provide and inject, and when should you use them?
  8. When would you write a custom directive?

Tailwind CSS Recommended 2

  1. Most asked How does Tailwind compare with Bootstrap or writing your own CSS?
  2. Most asked What's the difference between flex and grid in Tailwind, and when do you use each?

Web Security & WAF Recommended 1

  1. Which HTTP security headers should every web app send?

Performance & Scalability Recommended 4

  1. Most asked What is the difference between vertical and horizontal scaling?
  2. Most asked What's the difference between latency and throughput?
  3. When does asynchronous I/O improve performance, and when doesn't it?
  4. How can adding caches or indexes hurt performance?

Testing Recommended 2

  1. Most asked What's the difference between mocks, stubs, fakes and spies?
  2. What is mutation testing, and what does it tell you that code coverage doesn't?

Was this page helpful?

Report a mistake