What should I focus on for a frontend interview?

What makes these frontend interviews different?

React, JavaScript, and HTML, CSS, and browser topics appeared more often in these frontend interviews than across interviews overall. Performance, code review and clean code, and UI and product design also appeared more often. Mid-level questions made up the largest share, alongside junior and senior questions.

Start by checking whether you can explain frontend choices, not just name tools. Can you say where state belongs in a large React app? Can you explain when you would use a TypeScript interface rather than a type alias?

Can I explain why a layout tool fits?

The Grid versus Flexbox question led the list, appearing in 7 of 123 interviews. Some reviewed answers missed why the layout's needs favored a particular tool.

Connect your choice to the layout:

  • Does the design need shared alignment across rows and columns?
  • Does it need items to flow in a single direction and wrap?
  • Can you explain why those needs favor Grid or Flexbox?

Also check whether you can explain what semantic HTML means and how choosing the right element improves accessibility.

Which JavaScript and React explanations should I check?

Common questions covered the event loop, variable declarations, React basics, and state management. Use these checks to find gaps in your answers:

  • Can you explain how var, let, and const differ?
  • Can you explain the execution order of promises, async/await, timers, microtasks, and macrotasks?
  • Can you explain how props and state differ and when you use each?
  • Can you choose between local state, Context, and Redux for a large app, and explain your choice?
  • Can you explain what React adds compared with plain JavaScript?

What should I be able to build?

Coding tasks appeared in 17 of 123 interviews. Can you build a React counter that increases each time you click a button? Can you implement a toggle switch?

For CSS, check whether you can write a theming system that supports multiple brands and both light and dark modes. These are tasks to try in code, not just explain aloud.

What should I check beyond components?

Architecture, testing, and delivery questions appeared in 53 of 123 interviews. Can you explain a framework choice and how you would test and debug the frontend?

For performance, can you explain how you would use profiling to investigate slow rendering? Can you discuss loading strategies, memory leaks, and rendering trade-offs when working with a large dataset?

What Frontend Developer interviews cover

JavaScript50% of interviews
React48% of interviews
HTML / CSS / browser47% of interviews
Performance optimization & profiling28% of interviews
Debugging & production troubleshooting16% of interviews

The 20 most asked Frontend Developer questions

Counted by interview, not by mention: a question asked twice in one conversation counts once.

  1. How do CSS Grid and Flexbox differ, and when would you choose each for a responsive layout?

    Asked in 7 of 123 interviews · last asked Aug 27 · Concept · Mid-level

    Show answer

    CSS Grid controls rows and columns together, while Flexbox arranges items along one main axis. I choose Grid for a dashboard where panels must align across rows and columns. I choose Flexbox for a navigation bar where links flow in a row and may wrap. Both support responsive layouts and can be used together.

    • Grid provides shared row and column tracks for alignment.
    • Flexbox handles spacing and flexible item sizes along a row or column.
    • Wrapped flex lines work independently; they do not share column tracks.
    • Use flexible sizing and media queries to adapt either layout to available space.

    What the interviewer checks: The interviewer checks whether you choose a layout based on alignment and wrapping needs, not just screen size.

    Common mistake (in 3 of 5 reviewed answers): Many answers forget that shared row-and-column alignment favors Grid, while single-axis flow and independent wrapping favor Flexbox.

    Other ways it was asked
    • “What is the difference between Flexbox and Grid?”
    • “What is the difference between CSS Flexbox and CSS Grid?”
    • “What is the difference between Flexbox and CSS Grid?”
  2. What is the DOM?

    Asked in 6 of 123 interviews · last asked Sep 7 · Concept · Junior

    Show answer

    The DOM stands for Document Object Model. It is the browser’s tree of objects that represents a web page, including elements and text. JavaScript can use it to read or change the page’s content, structure, and styles, and respond to user events.

    • The DOM represents the current page, which can differ from the original HTML.
    • Elements and text are nodes in the tree.
    • React updates the browser’s DOM; React’s virtual DOM is a separate concept.

    What the interviewer checks: The interviewer is checking whether you understand how a browser represents a page and how JavaScript interacts with it.

    Other ways it was asked
    • “What is the DOM (Document Object Model)?”
    • “What does the DOM mean?”
    • “What does DOM stand for, and what is the DOM?”
  3. How does JavaScript’s event loop order microtasks, macrotasks, promises, async/await, and timers?

    Asked in 6 of 123 interviews · last asked Oct 8 · Concept · Mid-level

    Show answer

    In browsers, synchronous code finishes first, then all queued microtasks run before the next task (macrotask). Promise callbacks and code after await run as microtasks once their promises settle. Timers schedule tasks after a minimum delay, not at an exact time.

    • Microtasks added while draining the queue also run before the next task.
    • An async function runs synchronously until its first await; await pauses that function, not the thread.
    • Browsers may render between tasks, after microtasks finish.
    • Node.js has additional scheduling rules, including process.nextTick and event loop phases.
    JavaScript
    console.log('sync');
    setTimeout(() => console.log('timer'), 0);
    Promise.resolve().then(() => console.log('promise'));
    async function run() {
      await null;
      console.log('await');
    }
    run();
    // Output: sync, promise, await, timer

    What the interviewer checks: The interviewer checks whether you can predict execution order and explain why asynchronous code does not run immediately.

    Other ways it was asked
    • “What is the event loop in JavaScript?”
    • “What is the event loop in JavaScript, and how does it work?”
    • “What is the JavaScript event loop, and how does it work?”
  4. What is the difference between var, let, and const in JavaScript?

    Asked in 6 of 123 interviews · last asked Oct 3 · Concept · Junior

    Show answer

    var usually has function or global scope; let and const have block scope. Before declaration, var reads as undefined, while let and const throw a ReferenceError. var and let allow reassignment; const does not and normally requires an initial value. A const object's properties can still change.

    • All three are hoisted, but let and const cannot be accessed during their temporal dead zone.
    • var allows repeated var declarations in the same scope; let and const do not allow redeclaration.
    • const prevents reassignment, not changes to object properties or array contents.
    • Prefer const by default, use let when reassignment is needed, and avoid var in modern code.
    JavaScript
    const user = { name: "Ana" };
    user.name = "Sam"; // Allowed: changes the object.
    user = { name: "Lee" }; // Throws TypeError: reassigns the variable.

    What the interviewer checks: The interviewer is checking your understanding of scope, hoisting, reassignment, and object changes.

    Other ways it was asked
    • “In JavaScript, can you differentiate between let, var, and const?”
    • “What is the difference between var, let, and const?”
    • “In JavaScript, what's the difference between let, const, and var in terms of scope and hoisting?”
  5. How do you choose between local state, Context, and stores like Redux in a large React application?

    Asked in 6 of 123 interviews · last asked Oct 20 · Scenario · Senior

    Show answer

    I keep state local unless other components need it, then lift it to their closest shared parent. I use Context for shared values like theme, and Redux Toolkit or Zustand for complex shared client state. I use React Query for server data and caching. I avoid putting unrelated or frequently changing values in one large context.

    • Keep state close to where it is used; app size alone does not require Redux.
    • Context value changes re-render consumers, so split contexts by purpose and update frequency.
    • Stores offer selective subscriptions; Redux Toolkit also supports structured updates and debugging.
    • React Query handles server data caching, refetching, and synchronization; it does not replace all client state.

    What the interviewer checks: The interviewer checks whether you choose state tools based on ownership, sharing, update frequency, and maintenance needs.

    Other ways it was asked
    • “What are the different ways to manage state in a React application?”
    • “What are the options for centralized state management in a React application?”
    • “If an application only has React Context and Redux available, which would you choose to start using, and why?”
  6. What is React, why use it, and how does it differ from plain JavaScript?

    Asked in 6 of 123 interviews · last asked Sep 13 · Concept · Junior

    Show answer

    React is a JavaScript library for building user interfaces with reusable components. It helps manage complex screens by updating the UI when data changes. JavaScript is the programming language; React is a tool built with it. With plain JavaScript, you usually write DOM updates yourself; with React, you describe what the UI should show.

    • Components let you reuse UI code and split large screens into smaller parts.
    • Props pass data to components; state holds data that can change.
    • React handles DOM updates based on the UI you describe.
    • Plain JavaScript may be simpler for small pages with little interaction.

    What the interviewer checks: The interviewer checks whether you understand React’s purpose, its benefits, and its relationship to JavaScript.

    Other ways it was asked
    • “What is React?”
    • “What is React, and why is it used?”
    • “What is React, and what does it do?”
  7. What are props and state in React, how do they differ, and when do you use them?

    Asked in 6 of 123 interviews · last asked Sep 28 · Concept · Junior

    Show answer

    Props are inputs passed to a component, usually by its parent. State is data a component remembers between renders and updates over time. Props are read-only for the receiving component; state changes through React update functions. Use props to pass data and callbacks, and state for changing values like form input or whether a menu is open.

    • Props can change when the parent passes new values.
    • Do not mutate props or state directly; use a state setter, such as one from useState.
    • State updates request a render; the current render still sees its existing state.
    • For shared state, move it to a common parent and pass values and callbacks through props.

    What the interviewer checks: The interviewer checks whether you understand data ownership, React updates, and when to use props or state.

    Other ways it was asked
    • “What are props in React?”
    • “What is the difference between state and props?”
    • “What is state in React, and how is it different from props?”
  8. How do TypeScript interfaces and type aliases differ, and when would you use each?

    Asked in 5 of 123 interviews · last asked Jul 28 · Concept · Mid-level

    Show answer

    Interfaces describe object shapes, while type aliases can name object types, unions, tuples, and other types. Interfaces can merge across declarations; type aliases cannot. I use interfaces for object contracts that others may extend or augment. I use type aliases for unions, such as component props with different allowed states.

    • Both can describe component props and support optional properties, readonly properties, and generics.
    • Interfaces extend other object types; type aliases can combine types using intersections.
    • Repeated interface declarations merge, but conflicting property types cause errors.
    • Neither creates runtime checks; TypeScript types are removed when compiling.

    What the interviewer checks: The interviewer is checking whether you understand their overlap and can choose based on extension needs and data shapes.

    Other ways it was asked
    • “In TypeScript, what's the difference between type and interface, and when would you prefer one over the other in a UI component code base?”
    • “In TypeScript, what's the difference between type and interface, and when do you prefer one over the other?”
    • “In TypeScript, what's the difference between type and interface? When would you choose one over the other in a React component library?”
  9. What is the virtual DOM in React?

    Asked in 5 of 123 interviews · last asked Aug 10 · Concept · Junior

    Show answer

    The virtual DOM is React’s in-memory description of the user interface. When state or props change, React creates a new description and compares it with the previous one, a process called reconciliation. React then applies the needed changes to the real DOM.

    • The virtual DOM is made of JavaScript objects, not actual browser DOM nodes.
    • Rendering React components does not always cause changes to the real DOM.
    • Stable keys help React match list items between renders.
    • The virtual DOM does not guarantee better performance than direct DOM updates.

    What the interviewer checks: The interviewer is checking whether you understand how React turns component updates into real DOM changes.

    Other ways it was asked
    • “What is the Virtual DOM?”
    • “What is the virtual DOM, and how does it work?”
    • “What is the virtual DOM in React? Also, explain the event loop in Node.js.”
  10. What is semantic HTML, and how does choosing the right element improve accessibility?

    Asked in 4 of 123 interviews · last asked Aug 25 · Concept · Junior

    Show answer

    Semantic HTML means choosing elements for their meaning, not their appearance. I use a button for an action, a link for navigation, and headings to organize content. These choices help screen readers identify controls and page structure, while native controls provide built-in keyboard support.

    • Choose elements based on their purpose, then use CSS to control appearance.
    • Headings and landmarks, such as main and nav, help screen-reader users move through a page.
    • A clickable div does not automatically have a button’s role or keyboard behavior.
    • Semantic elements still need clear labels and a logical content order.

    What the interviewer checks: The interviewer checks whether you connect element choice to meaning, screen-reader navigation, and keyboard access.

    Other ways it was asked
    • “What is semantic HTML, and why is it important?”
    • “What are semantic HTML elements, and why do we even need them if we can build the UI without them?”
    • “What is semantic HTML, and why is it used?”
  11. What is a JavaScript closure, and how does it retain variables after the outer function returns?

    Asked in 4 of 123 interviews · last asked Oct 12 · Concept · Junior

    Show answer

    A JavaScript closure is a function together with access to variables from the scope where it was created. If the outer function returns, a reachable inner function keeps access to those variables. It retains the variable bindings, not frozen copies, so their values can change.

    • Scope depends on where a function is created, not where it is called.
    • Closures can keep private state, such as a counter.
    • Separate calls to the outer function create separate sets of local variables.
    • Retained variables can be garbage-collected when nothing reachable needs them.
    JavaScript
    function makeCounter() {
      let count = 0;
      return function () {
        return ++count;
      };
    }
    const next = makeCounter();
    console.log(next()); // 1
    console.log(next()); // 2

    What the interviewer checks: The interviewer is checking whether you understand scope and how a returned function keeps access to changing state.

    Other ways it was asked
    • “What is a closure in JavaScript?”
    • “Could you explain closures in JavaScript and give an example of where they might be useful?”
    • “Can you explain the concept of closures in JavaScript?”
  12. What is the difference between == and === in JavaScript, and when would you use each?

    Asked in 4 of 123 interviews · last asked Sep 29 · Concept · Junior

    Show answer

    === compares values without converting their types, so different types are never equal. == can convert types before comparing. I use === by default to avoid surprises, and == only when I want its conversion rules, such as checking for both null and undefined with value == null.

    • === does not convert types; == follows specific type conversion rules.
    • value == null matches both null and undefined, but not false, 0, or an empty string.
    • Both operators compare objects by identity, not by their contents.
    • NaN is not equal to itself with either operator.
    JavaScript
    console.log(5 == "5");          // true
    console.log(5 === "5");         // false
    console.log(null == undefined); // true
    console.log(null === undefined); // false

    What the interviewer checks: The interviewer is checking whether you understand type conversion and can choose comparisons that avoid unexpected results.

    Other ways it was asked
    • “What is the difference between == and === in JavaScript?”
    • “In JavaScript, what is the difference between == and ===, and when would you choose one over the other?”
    • “What is the difference between double equals (==) and triple equals (===)?”
  13. How does hoisting work for var, let, and const, including the temporal dead zone?

    Asked in 4 of 123 interviews · last asked Aug 25 · Concept · Junior

    Show answer

    Hoisting means JavaScript creates bindings before code in their scope runs. `var` starts as `undefined`, so reading it before its declaration returns `undefined`. `let` and `const` stay uninitialized in the temporal dead zone, from scope entry until their declaration initializes them. Reading them there throws a `ReferenceError`.

    • `var` is function-, module-, or global-scoped; `let` and `const` are block-scoped.
    • Declarations are not physically moved, and assigned values are not available early.
    • Even `typeof` throws a `ReferenceError` for a variable in its temporal dead zone.
    JavaScript
    console.log(a); // undefined
    var a = 1;
    {
      console.log(b); // ReferenceError: b is in its temporal dead zone
      let b = 2; // Using const instead would cause the same error above
    }

    What the interviewer checks: The interviewer checks whether you can distinguish creating a binding from initializing it and predict access-before-declaration behavior.

    Other ways it was asked
    • “What is hoisting in JavaScript?”
    • “Tell me about hoisting in JavaScript.”
    • “How would you explain the practical difference between a hoisted var being initialized to undefined and the temporal dead zone for let and const?”
  14. What causes React components to rerender, and how do you prevent unnecessary rerenders?

    Asked in 4 of 123 interviews · last asked Oct 3 · Concept · Mid-level

    Show answer

    React components rerender when their state changes, their parent renders, or context they read changes. Keep state local and profile slow updates before optimizing. Use React.memo to skip parent-driven renders when props are unchanged. Use useMemo and useCallback when stable values or functions help memoized children skip renders.

    • React.memo compares each prop using Object.is by default; new objects, arrays, and functions can defeat it.
    • Memoized components still rerender for their own state changes or changes to context they read.
    • Split contexts when unrelated updates cause many consumers to rerender.
    • A rerender does not always change the DOM; React updates only what needs changing.

    What the interviewer checks: The interviewer checks whether you understand render triggers and can apply memoization where it actually helps.

    Other ways it was asked
    • “How can you prevent unnecessary re-renders in React?”
    • “In React, what common patterns accidentally cause unnecessary re-renders, and how do you typically prevent them?”
    • “How do you prevent unnecessary re-renders in a React SPA when passing callbacks and derived data deep into a component tree?”
  15. What are components in React?

    Asked in 4 of 123 interviews · last asked Sep 7 · Concept · Junior

    Show answer

    React components are reusable pieces of a user interface, such as buttons, forms, or menus. They receive inputs called props and describe what React should display. Components can be functions or classes, but functions are preferred for new code. They can also manage state to update the interface.

    • Components combine to build larger interfaces.
    • Props pass data into a component and should not be changed by that component.
    • Function components use Hooks to manage state; class components use class APIs.
    • Component names must start with a capital letter when used in JSX.
    JavaScript
    function Greeting({ name }) {
      return <h1>Hello, {name}!</h1>;
    }
    
    export default function App() {
      return <Greeting name="Sam" />;
    }

    What the interviewer checks: The interviewer is checking whether you understand reusable UI pieces, props, state, and the main component types.

    Other ways it was asked
    • “What is a component in React?”
    • “What are the different types of components in React?”
    • “What are React components?”
  16. What is useReducer, and when would you choose it over useState?

    Asked in 4 of 123 interviews · last asked Jul 26 · Concept · Mid-level

    Show answer

    useReducer is a React Hook that manages state with a reducer function and dispatched actions. The reducer takes the current state and an action, then returns the next state. I choose it over useState when related values change together or update rules become complex. It keeps those rules in one place and easier to test.

    • Use useState for simple, independent values; useReducer adds structure but requires more code.
    • Keep reducers pure: do not mutate state or run side effects inside them.
    • As features grow, use clear action names and split unrelated state into separate reducers.

    What the interviewer checks: The interviewer checks whether you can choose a state Hook based on update complexity and keep state logic clear.

    Other ways it was asked
    • “What is useReducer in React?”
    • “What is the purpose of useReducer?”
    • “What is a reducer in React?”
  17. How would you build a responsive layout matching desktop designs and reflowing on mobile without duplicating markup?

    Asked in 3 of 123 interviews · last asked Oct 8 · Scenario · Mid-level

    Show answer

    I would use one semantic HTML structure, with CSS Grid or Flexbox to change the layout across screen sizes. I would start with a simple mobile layout, then add media queries where the content needs more space. I would match desktop spacing and sizing, use flexible widths and images, and test between breakpoints for overflow.

    • Choose breakpoints based on where the content stops fitting, not specific device models.
    • Use Grid for rows and columns, and Flexbox for layout along one direction.
    • Keep the HTML in a logical reading order; visual reordering must not confuse keyboard users.
    • Include the viewport meta tag so mobile browsers use the device width.

    What the interviewer checks: The interviewer checks whether you can match a design while keeping one accessible structure that adapts smoothly.

    Other ways it was asked
    • “What CSS layout approach and breakpoint strategy would you use to match a desktop design closely and reflow it cleanly on mobile without duplicating markup?”
    • “How do you make a user interface work well across mobile and desktop screen sizes?”
    • “How would you make a web interface responsive across different screen sizes?”
  18. What is the difference between controlled and uncontrolled components in React?

    Asked in 3 of 123 interviews · last asked Oct 8 · Concept · Junior

    Show answer

    A controlled input gets its value from React state and updates that state through an event handler. An uncontrolled input keeps its value in the DOM, and you read it with a ref or FormData. I use controlled inputs for live validation or linked fields, and uncontrolled inputs for simple forms read on submit.

    • Controlled inputs use value or checked, usually with onChange to update state.
    • Uncontrolled inputs use defaultValue or defaultChecked to set an initial value.
    • An input should not switch between controlled and uncontrolled during its lifetime.

    What the interviewer checks: The interviewer is checking whether you understand where input values live and how to choose a form approach.

    Other ways it was asked
    • “In React, can you explain the difference between a controlled and uncontrolled component, and when you choose one over the other?”
    • “What are controlled and uncontrolled components in React?”
  19. Can you describe the difference between useEffect and useLayoutEffect, and when you would use each?

    Asked in 3 of 123 interviews · last asked Aug 10 · Concept · Mid-level

    Show answer

    useEffect runs after React updates the DOM, usually after the browser paints. Use it for subscriptions, timers, or fetching data. useLayoutEffect runs after DOM updates but before paint, and blocks painting while it runs. Use it to measure layout and update the UI before users see it, such as positioning a tooltip.

    • Prefer useEffect unless the work must happen before paint to avoid a visible flicker.
    • useEffect can run before paint, especially for updates caused by user interactions.
    • Heavy work in useLayoutEffect delays painting and can make the page feel slow.
    • Both support dependency arrays and cleanup functions.

    What the interviewer checks: The interviewer checks whether you understand effect timing and can choose the right hook without unnecessarily blocking rendering.

    Other ways it was asked
    • “What is the difference between useEffect and useLayoutEffect?”
    • “What are hooks, and what is the difference between useEffect and useLayoutEffect?”
  20. What is JSX in React?

    Asked in 3 of 123 interviews · last asked Jul 28 · Concept · Junior

    Show answer

    JSX is a JavaScript syntax extension that lets us describe React UI with HTML-like markup. A build tool turns it into JavaScript calls that create React elements. It makes UI code easier to read and lets us use JavaScript expressions inside braces. React can also be used without JSX.

    • JSX looks like HTML, but it is JavaScript syntax, not an HTML string.
    • Braces let you include JavaScript expressions, such as variables or function calls.
    • JSX uses names like className instead of HTML’s class attribute.
    JavaScript
    function Greeting({ name }) {
      return <h1 className="greeting">Hello, {name}!</h1>;
    }

    What the interviewer checks: The interviewer is checking whether you understand what JSX is, how it runs, and why React uses it.

    Other ways it was asked
    • “What is JSX?”
    • “Why do we use JSX in React?”

HTML and accessibility interview questions

Check your knowledge of HTML structure, semantic elements, attributes, forms, keyboard use, screen readers, and ARIA. 48 questions.

  1. For a custom button component, what semantic element would you choose by default, and what keyboard and focus behaviors must it support to meet accessibility expectations?

    Asked in 2 of 123 interviews · last asked Jul 28 · Concept · Mid-level

    Other ways it was asked
    • “When you build an accessible custom button component, what are your non-negotiables for semantics and keyboard and focus behavior, including disabled states?”
  2. When would you choose a button versus a link, and what accessibility behavior should each provide by default?

    Asked in 2 of 123 interviews · last asked Jul 26 · Concept · Mid-level

    Other ways it was asked
    • “When would you choose a button versus a link for a clickable UI element, and what accessibility and keyboard differences matter most?”
  3. What is the DOCTYPE declaration?

    Asked in 2 of 123 interviews · last asked Aug 27 · Concept · Junior

    Other ways it was asked
    • “Why do we use a DOCTYPE declaration?”
    • “What does the doctype declaration do in an HTML document?”
    • “What does a DOCTYPE declaration tell the browser?”
  4. What are HTML attributes, and how are they used?

    Asked in 2 of 123 interviews · last asked Sep 2 · Concept · Junior

    Other ways it was asked
    • “What are HTML data attributes, and how are they used?”
  5. What is the purpose of the meta tag in HTML?

    Asked in 2 of 123 interviews · last asked Aug 25 · Concept · Junior

    Other ways it was asked
    • “What are HTML meta tags, and what are they used for?”
  6. When would you use display: none, and how does it affect screen readers?

    Asked once · last asked Aug 25 · Concept · Mid-level

  7. How do you handle accessibility for responsive navigation with a menu button and an off-canvas panel? Which HTML elements and attributes do you require for correct keyboard and screen reader behavior?

    Asked once · last asked Jun 7 · Scenario · Mid-level

  8. If you style an element to look like a button, what specific attributes, roles, and keyboard behaviors do you ensure to keep it accessible?

    Asked once · last asked Jul 16 · Concept · Mid-level

  9. How do you approach semantic landmarks and heading structure on a complex page to support screen readers, especially when parts of the UI are visually titled but not true sections?

    Asked once · last asked Jul 16 · Concept · Mid-level

  10. What is the difference between the HTML <b> and <strong> tags?

    Asked once · last asked Nov 21 · Concept · Junior

    Other ways it was asked
    • “What is the difference between the bold and strong tags?”
  11. What is the role of the alt attribute in an image tag?

    Asked once · last asked Nov 21 · Concept · Junior

  12. What can provide an accessible text alternative for an image besides the alt attribute?

    Asked once · last asked Nov 21 · Concept · Junior

Show 6 more
  1. How do you decide between using a native button and a non-button element with role="button", and what ARIA or attribute requirements do you enforce in each case?

    Asked once · last asked Jul 22 · Concept · Senior

  2. How would you balance smooth animations with accessibility preferences like users who want reduced motion?

    Asked once · last asked Jul 22 · Scenario · Senior

  3. When building a page layout, how do you decide which semantic elements to use, like header, nav, main, section, article, aside, instead of generic divs?

    Asked once · last asked Jul 26 · Concept · Mid-level

  4. When would you wrap a blog post card in an article element versus using a section or a div?

    Asked once · last asked Jul 26 · Concept · Mid-level

  5. How do you determine the sizes attribute values for srcset so the browser selects the right image across breakpoints?

    Asked once · last asked Jul 26 · Concept · Mid-level

  6. How do you ensure keyboard accessibility for a custom dropdown component using HTML, CSS, and JS, including ARIA considerations?

    Asked once · last asked Jul 26 · Scenario · Mid-level

All HTML and CSS interview questions

CSS and responsive design interview questions

CSS questions cover selectors, the box model, positioning, Grid, Flexbox, responsive layouts, theming, and matching a design. 81 questions.

  1. How would you implement light and dark themes on a website?

    Asked in 2 of 123 interviews · last asked Sep 7 · Scenario · Mid-level

    Other ways it was asked
    • “How would you implement an application with light and dark themes?”
  2. What is the difference between ID and class selectors in CSS?

    Asked in 2 of 123 interviews · last asked Aug 25 · Concept · Junior

    Other ways it was asked
    • “Can you complete your explanation on the difference between ID and class selectors in CSS?”
    • “In CSS, which has higher specificity: a class selector or an ID selector?”
  3. When building a responsive layout, how do you decide between media queries and container queries, and what is one case where container queries are clearly better?

    Asked in 2 of 123 interviews · last asked Oct 12 · Concept · Mid-level

    Other ways it was asked
    • “What is the difference between media queries and container queries?”
  4. When implementing a pixel-perfect design, how do you structure spacing and typography so it stays consistent across breakpoints without duplicating lots of CSS?

    Asked in 2 of 123 interviews · last asked Jul 28 · Tooling · Mid-level

    Other ways it was asked
    • “In a pixel-perfect build, how do you keep typography consistent across breakpoints, font size, line height, and letter spacing while still being responsive?”
  5. What is CSS?

    Asked in 2 of 123 interviews · last asked Aug 4 · Concept · Junior

    Other ways it was asked
    • “Explain CSS in your own words.”
  6. What is CSS margin collapse, and how can you control or prevent it?

    Asked in 2 of 123 interviews · last asked Aug 25 · Concept · Junior

    Other ways it was asked
    • “How can you control or prevent CSS margin collapsing?”
    • “What is margin collapse in CSS?”
    • “What is CSS margin collapsing, and when does it occur?”
  7. Explain the difference between margin and padding.

    Asked in 2 of 123 interviews · last asked Aug 20 · Concept · Junior

    Other ways it was asked
    • “What is the difference between padding and margin in CSS?”
  8. What is the difference between CSS `display: none` and `visibility: hidden`?

    Asked once · last asked Jun 5 · Concept · Junior

    Other ways it was asked
    • “What is the difference between display: none and visibility: hidden?”
  9. What is the difference between Flexbox and float in CSS?

    Asked once · last asked Mar 5 · Concept · Junior

  10. What does `display: flex` do, and when would you use it?

    Asked once · last asked Mar 20 · Concept · Junior

  11. What does `align-items: center` do in CSS Flexbox?

    Asked once · last asked Mar 20 · Concept · Junior

  12. Which CSS properties can you use to control the spacing between boxes?

    Asked once · last asked Mar 20 · Concept · Junior

Show 6 more
  1. How can you distinguish padding from margin in the CSS box model?

    Asked once · last asked Mar 20 · Concept · Junior

  2. In the CSS box model, what lies outside an element's border?

    Asked once · last asked Mar 20 · Concept · Junior

  3. How would you make a frontend responsive with CSS media queries, and how would provided screen layouts guide your implementation?

    Asked once · last asked Mar 20 · Scenario · Mid-level

  4. What is BEM, and how do you apply it when writing HTML and CSS?

    Asked once · last asked Jun 5 · Concept · Mid-level

  5. What is the difference between an SCSS mixin and a function?

    Asked once · last asked Jun 5 · Concept · Mid-level

  6. How can you use a function in SCSS? Give a simple example.

    Asked once · last asked Jun 5 · Tooling · Mid-level

All HTML and CSS interview questions

JavaScript and programming fundamentals interview questions

Work through JavaScript scope, closures, objects, asynchronous code, and algorithms, plus supporting questions on Python, Java, and object-oriented programming. 112 questions.

  1. What is the difference between a list and a tuple in Python?

    Asked in 2 of 123 interviews · last asked Sep 17 · Concept · Junior

    Other ways it was asked
    • “What is the difference between lists and tuples in Python?”
    • “What is the difference between a list and a tuple?”
  2. What is a JavaScript Promise used for, and when would you use one?

    Asked in 2 of 123 interviews · last asked Oct 5 · Concept · Junior

    Other ways it was asked
    • “What is a JavaScript Promise, and how does it work?”
    • “What is a JavaScript promise?”
  3. How can you print the value of a variable to the console in JavaScript?

    Asked in 2 of 123 interviews · last asked Sep 17 · Tooling · Junior

  4. Why is JavaScript mainly used on websites?

    Asked in 2 of 123 interviews · last asked Sep 17 · Concept · Junior

  5. What is the difference between == and is in Python?

    Asked once · last asked Jul 31 · Concept · Junior

    Other ways it was asked
    • “What is the difference between `==` and `is` in Python?”
  6. What is the difference between method overriding and method overloading in object-oriented programming?

    Asked once · last asked Jun 23 · Concept · Mid-level

    Other ways it was asked
    • “What is method overloading in object-oriented programming?”
  7. How do JavaScript's map, filter, and forEach methods differ?

    Asked once · last asked Jul 20 · Concept · Junior

    Other ways it was asked
    • “How do the map, filter, reduce, and forEach methods differ in JavaScript?”
  8. What is the difference between a HashMap and a HashSet?

    Asked once · last asked Jul 31 · Concept · Junior

  9. What is the three-sum problem, and how would you solve it?

    Asked once · last asked Sep 3 · Write code · Junior

    Other ways it was asked
    • “How would you implement a solution to the three-sum problem?”
  10. Can you give an example of a higher-order function, preferably one you use regularly?

    Asked once · last asked Dec 29 · Concept · Mid-level

  11. How can Promise.all with map be used to handle multiple asynchronous operations?

    Asked once · last asked Mar 29 · Concept · Mid-level

  12. What are some common pitfalls you watch for when dealing with promises, and how do you avoid subtle bugs like unhandled rejections or race conditions?

    Asked once · last asked May 15 · Concept · Senior

Show 3 more
  1. How do you assess the correctness and edge-case coverage of a non-trivial JavaScript function that manipulates arrays or objects?

    Asked once · last asked May 15 · Scenario · Senior

  2. How do you reason about time and space complexity in JavaScript, and how does that influence your choice of data structures when writing code?

    Asked once · last asked May 15 · Concept · Senior

  3. How do null and undefined behave with == versus === comparisons?

    Asked once · last asked Jun 7 · Concept · Mid-level

All JavaScript interview questions

TypeScript interview questions

TypeScript questions cover interfaces, generics, narrowing, discriminated unions, runtime validation, and types for components and APIs. 24 questions.

  1. What are generics in TypeScript?

    Asked in 2 of 123 interviews · last asked Jun 4 · Concept · Junior

    Other ways it was asked
    • “What are generic types in TypeScript, and what is your understanding of them?”
  2. How would you type a polymorphic React component with an as prop, matching element props and refs?

    Asked in 2 of 123 interviews · last asked Jul 19 · Concept · Senior

    Other ways it was asked
    • “How would you type a reusable React component with an as prop so that when as is an anchor you get anchor props, and when as is a button you get button props, including correct ref types?”
    • “How would you model a polymorphic React component in TypeScript?”
    • “In a polymorphic React component typed with TypeScript, how do you ensure the ref type matches each rendered element, and which type utilities can infer the instance type?”
  3. How do you reliably narrow a discriminated union of React component props inside the component?

    Asked once · last asked Jul 22 · Concept · Senior

    Other ways it was asked
    • “How do you reliably narrow a discriminated union of React component props, and what pitfalls can arise in JSX or inline callbacks?”
  4. What are type guards in TypeScript, and when would you use them?

    Asked once · last asked Jan 20 · Concept · Mid-level

    Other ways it was asked
    • “How would you write a type guard in TypeScript?”
  5. Could you describe a particularly challenging bug you encountered in a TypeScript project and walk me through how you debugged and resolved it?

    Asked once · last asked Apr 16 · Behavioral · Mid-level

  6. After identifying a TypeScript type-contract failure in a component, what technical steps would you take to fix it and prevent it from happening again?

    Asked once · last asked Apr 16 · Behavioral · Mid-level

    Other ways it was asked
    • “After identifying a TypeScript type-contract failure, what technical steps did you take to fix it and prevent it from happening again?”
  7. How do you use TypeScript to improve code quality in React projects?

    Asked once · last asked Oct 15 · Tooling · Mid-level

  8. When would you choose discriminated unions over function overloads in TypeScript for modeling UI component props, and why?

    Asked once · last asked Jul 16 · Concept · Mid-level

  9. In a TypeScript code base, how do you enforce exhaustive handling of a discriminated union in a switch?

    Asked once · last asked Jul 16 · Concept · Mid-level

  10. When you encounter mismatches between front-end TypeScript types and back-end API responses, how do you go about aligning them?

    Asked once · last asked Jul 11 · Scenario · Mid-level

  11. In a React plus TypeScript app, how do you type a reducer so dispatch only accepts valid actions and the reducer stays exhaustively checked as actions evolve?

    Asked once · last asked Jul 19 · Concept · Senior

  12. When consuming backend responses with optional or nullable fields, how do you define TypeScript types and validate data at runtime to avoid unsafe casts in UI code?

    Asked once · last asked Jul 19 · Scenario · Mid-level

Show 7 more
  1. How would you model a React component's props with a discriminated union so that when variant is linked it requires ref, and when variant is button it requires onClick?

    Asked once · last asked Jul 22 · Concept · Senior

  2. In a React component props API, when do you prefer interface extends versus type intersections, and what edge case drives that choice?

    Asked once · last asked Jul 28 · Concept · Senior

  3. Could you briefly describe an example of a component with mutually exclusive props, and how you'd type it in TypeScript?

    Asked once · last asked Jul 28 · Write code · Mid-level

  4. How would you type a button's props in TypeScript so that link mode requires an href and forbids onClick, while button mode allows onClick and forbids href?

    Asked once · last asked Jul 28 · Write code · Mid-level

  5. How do you represent forbidden props in TypeScript discriminated unions?

    Asked once · last asked Jul 28 · Concept · Mid-level

  6. When modeling mutually exclusive props in TypeScript, how do you choose between using never, omitting keys, or another approach, and what are the downsides?

    Asked once · last asked Jul 28 · Concept · Senior

  7. In TypeScript, how do you type an async data fetching function so its return type is inferred from a Zod or similar schema and consumers get fully typed results?

    Asked once · last asked Jul 28 · Write code · Senior

All TypeScript interview questions

React interview questions

Explore React components, JSX, props, hooks, forms, state management, rendering, and practical coding tasks. 93 questions.

  1. What is useState in React?

    Asked in 3 of 123 interviews · last asked Sep 28 · Concept · Junior

    Other ways it was asked
    • “What is the purpose of useState in React?”
    • “What is the purpose of the useState hook in React?”
  2. How do hooks work in React?

    Asked in 3 of 123 interviews · last asked Sep 7 · Concept · Junior

    Other ways it was asked
    • “What is a hook in React?”
    • “What are hooks in React and what are their roles?”
    • “What are React Hooks, and why were they introduced?”
  3. What is Redux?

    Asked in 3 of 123 interviews · last asked Sep 7 · Concept · Junior

    Other ways it was asked
    • “Can you explain what Redux does?”
    • “What is Redux, and how does it help manage application state?”
  4. In React 18, how does automatic batching change when state updates trigger renders, especially across promises or timeouts?

    Asked in 2 of 123 interviews · last asked Oct 3 · Concept · Senior

    Other ways it was asked
    • “In React 18, how do you explain the impact of automatic batching and concurrent rendering on state updates and side effects? What pitfalls have you seen?”
  5. What is useEffect in React?

    Asked in 2 of 123 interviews · last asked Jul 28 · Concept · Junior

    Other ways it was asked
    • “Why do we use useEffect in React?”
  6. How would you build a React app with a button that increments a counter by one each time it is clicked?

    Asked in 2 of 123 interviews · last asked Aug 25 · Write code · Junior

    Other ways it was asked
    • “Can you write React code that counts up by one each time you click a button?”
    • “Can you build a React frontend for a button that increments a displayed count by one each time it is clicked?”
    • “How would you build a React app with a button that increments a counter by two each time it is clicked?”
  7. What is React Context, and when would you use it for state management?

    Asked in 2 of 123 interviews · last asked Mar 21 · Concept · Junior

    Other ways it was asked
    • “Can you tell me about a time when you used the React Context API for state management and what challenges you encountered?”
  8. How would you implement a toggle switch in React?

    Asked in 2 of 123 interviews · last asked Aug 28 · Write code · Junior

    Other ways it was asked
    • “Can you implement a toggle switch in React?”
  9. What are the differences between useEffect, useMemo, and useCallback?

    Asked once · last asked Sep 7 · Concept · Mid-level

    Other ways it was asked
    • “What is the difference between useMemo and useCallback, and when would you use them?”
  10. What is the difference between functional components and class components in React?

    Asked once · last asked Oct 19 · Concept · Junior

    Other ways it was asked
    • “What are the differences between class-based and function-based React components?”

All React interview questions

Angular and Vue interview questions

Questions cover Angular components, dependency injection, signals, RxJS, routing, and change detection, plus Vue maintenance and Pinia stores. 54 questions.

  1. What are Angular signals, and how are they used?

    Asked in 3 of 123 interviews · last asked Mar 27 · Concept · Mid-level

    Other ways it was asked
    • “What are Angular signals, and how do they work?”
    • “What are Angular Signals, and when would you use them?”
    • “Explain Angular's signals system and how it replaces traditional change detection.”
  2. What is Angular?

    Asked in 3 of 123 interviews · last asked Oct 23 · Concept · Junior

  3. When would you use lazy loading in Angular?

    Asked in 2 of 123 interviews · last asked Apr 16 · Concept · Mid-level

    Other ways it was asked
    • “What is lazy loading in Angular, and when would you use it?”
    • “What is the difference between eager loading and lazy loading in Angular?”
    • “What are the benefits of lazy loading in Angular?”
  4. How do you pass data from a parent component to a child component in Angular?

    Asked in 2 of 123 interviews · last asked Aug 15 · Concept · Junior

    Other ways it was asked
    • “How can you pass data from a parent component to a child component in Angular?”
    • “In Angular, how do you pass data to a child component, and how does the child notify the parent about an event?”
  5. How do Angular change detection strategies Default and OnPush differ in practice?

    Asked in 2 of 123 interviews · last asked Aug 15 · Concept · Mid-level

    Other ways it was asked
    • “What are the advantages of Angular's Default and OnPush change detection strategies, and when should you use each?”
  6. In Angular, what is the practical difference between a component’s constructor and ngOnInit, and what kinds of work would you avoid doing in the constructor?

    Asked in 2 of 123 interviews · last asked Jul 26 · Concept · Mid-level

    Other ways it was asked
    • “In Angular, what's the difference between a component's constructor and ngOnInit? And what kinds of work would you put in each?”
  7. What are the benefits of migrating to Pinia?

    Asked once · last asked Mar 24 · Concept · Mid-level

  8. How would you manage deeply nested data structures and complex application state with Pinia?

    Asked once · last asked Jul 16 · Scenario · Mid-level

    Other ways it was asked
    • “Can you give an example of how you used Pinia to manage deeply nested data structures and complex application state?”
  9. Do you know the differences between signals and RxJS?

    Asked once · last asked Mar 24 · Concept · Mid-level

    Other ways it was asked
    • “When would you use signals, and when would you use RxJS?”
  10. How is an observable different from a promise?

    Asked once · last asked Mar 24 · Concept · Junior

  11. How does Angular's @Host resolution modifier affect dependency injection?

    Asked once · last asked Mar 24 · Concept · Senior

    Other ways it was asked
    • “What does Angular's @Host resolution modifier do?”
  12. How would you manage shared state between deeply nested or unrelated Angular components?

    Asked once · last asked Aug 15 · Concept · Mid-level

    Other ways it was asked
    • “In Angular, how do you manage shared state between multiple unrelated components?”
Show 8 more
  1. What is the Angular Ivy compiler, and what advantages did it bring?

    Asked once · last asked Mar 20 · Concept · Mid-level

  2. What is a computed signal in Angular?

    Asked once · last asked Mar 24 · Concept · Mid-level

    Other ways it was asked
    • “Why use a computed signal instead of an effect in Angular, and what is the difference between them?”
  3. What are linked signals in Angular, and when would you use them?

    Asked once · last asked Mar 24 · Concept · Mid-level

  4. What design pattern does the RxJS library implement?

    Asked once · last asked Mar 24 · Concept · Mid-level

  5. What is a cold observable?

    Asked once · last asked Mar 24 · Concept · Mid-level

  6. What is a subscription in RxJS, and what is its purpose?

    Asked once · last asked Mar 24 · Concept · Junior

    Other ways it was asked
    • “What is a subscription, and what is its purpose?”
  7. What is Angular SSR, and how does it work?

    Asked once · last asked Mar 24 · Concept · Mid-level

  8. What is Angular's PLATFORM_ID token used for?

    Asked once · last asked Mar 24 · Concept · Mid-level

All Angular interview questions

Browser, API, and Next.js interview questions

Review browser navigation, HTTP, storage, data fetching, caching, authentication, security, offline synchronization, and Next.js rendering and routing. 101 questions.

  1. How do SSG and SSR differ in Next.js, including getStaticProps and getServerSideProps?

    Asked in 3 of 123 interviews · last asked Oct 1 · Concept · Mid-level

    Other ways it was asked
    • “What is the difference between SSR and SSG in Next.js?”
    • “What is the difference between SSR and ISR in Next.js?”
    • “What are getStaticProps and getServerSideProps used for?”
  2. How do CSR, SSR, and SSG differ, and when would you choose each?

    Asked in 3 of 123 interviews · last asked Oct 19 · Concept · Mid-level

    Other ways it was asked
    • “What are client-side rendering (CSR) and server-side rendering (SSR)?”
    • “What is the difference between server-side rendering (SSR), static site generation (SSG), and client-side rendering (CSR)?”
    • “When would you choose static, server-side, or client-side rendering, and why?”
  3. What is the difference between local storage and session storage in web browsers?

    Asked in 2 of 123 interviews · last asked Oct 22 · Concept · Junior

    Other ways it was asked
    • “What is the difference between cookies, local storage, and session storage in the browser?”
  4. What is hydration in web applications?

    Asked in 2 of 123 interviews · last asked Sep 7 · Concept · Mid-level

    Other ways it was asked
    • “What is hydration?”
    • “What happens during hydration?”
  5. What is the difference between GET and POST?

    Asked in 2 of 123 interviews · last asked Jun 4 · Concept · Junior

    Other ways it was asked
    • “What is the difference between the GET and POST methods in an HTML form?”
    • “What is the difference between GET and POST in HTTP?”
  6. How would you keep a mobile app responsive and user-friendly in low-connectivity environments?

    Asked once · last asked Jun 24 · Scenario · Mid-level

  7. Where would you store a selected team identifier—in a cache or in cookies?

    Asked once · last asked Sep 7 · Scenario · Mid-level

    Other ways it was asked
    • “Where would you store a selected team identifier: in a cache, cookies, or local storage?”
  8. How would you organize components and load resources when rendering a product listing page in Next.js?

    Asked once · last asked Oct 8 · Scenario · Senior

  9. How would you handle errors on the client side in a Next.js application?

    Asked once · last asked Oct 8 · Scenario · Mid-level

    Other ways it was asked
    • “How would you handle errors that occur on the server side in a Next.js application?”
  10. How would you use socket integration to support real-time messaging in a chat application?

    Asked once · last asked Feb 18 · Concept · Mid-level

  11. How would you extract rooftop solar imagery and obtain satellite images of rooftop solar panels?

    Asked once · last asked Feb 25 · Case · Mid-level

  12. Google Search Console shows plain text saying the site may be hacked. What is the first thing you would do?

    Asked once · last asked Mar 20 · Scenario · Mid-level

Show 8 more
  1. What security header recommendations would you give backend developers to improve a web application's security?

    Asked once · last asked Mar 20 · Scenario · Mid-level

  2. An e-commerce catalog uses Redis for backend caching. What frontend strategy would you use to optimize requests between the frontend and backend?

    Asked once · last asked Mar 21 · Scenario · Mid-level

  3. In Next.js, when should you use the Link component, and when should you use an <a> element?

    Asked once · last asked Mar 21 · Concept · Junior

  4. How would you use Next.js to manage authentication and protect routes so only signed-in users can access them?

    Asked once · last asked Mar 21 · Scenario · Mid-level

  5. In recent versions of Next.js, what mechanism would you use to protect authenticated data queries?

    Asked once · last asked Mar 21 · Concept · Mid-level

  6. How do you handle common web security concerns on the front end?

    Asked once · last asked Oct 15 · Scenario · Mid-level

  7. Why is data sent in the request body with POST rather than in the URL?

    Asked once · last asked May 19 · Concept · Junior

  8. If I want to send parameters in the URL with a POST request, how can I do that?

    Asked once · last asked May 19 · Concept · Junior

Frontend performance interview questions

Performance questions focus on Core Web Vitals, profiling, loading, rendering, large datasets, animations, memory leaks, and trade-offs. 50 questions.

  1. How do async and defer affect script loading, execution order, and parser blocking?

    Asked in 2 of 123 interviews · last asked Aug 25 · Concept · Junior

    Other ways it was asked
    • “What is the difference between async and defer?”
    • “When would you use async, and when would you use defer?”
    • “What is the difference between async and defer on script tags?”
  2. What are Core Web Vitals, and what do LCP, INP, and CLS measure?

    Asked in 2 of 123 interviews · last asked Oct 8 · Concept · Junior

    Other ways it was asked
    • “Can you explain what LCP, INP, and CLS measure?”
    • “What do LCP and CLS measure?”
    • “What metrics are used to measure user experience in terms of loading speed, interactivity, and visual stability?”
  3. When working on a feature that requires complex state management or high-frequency updates, what is your process for optimizing performance and preventing memory leaks in a React and TypeScript environment?

    Asked once · last asked Apr 16 · Scenario · Senior

    Other ways it was asked
    • “In a React and TypeScript feature with complex state or frequent updates, how would you identify and address performance bottlenecks or potential memory leaks?”
  4. A client website's page speed suddenly drops from 90 to 40, with no code changes and the same hosting. What would you do?

    Asked once · last asked Mar 20 · Scenario · Mid-level

  5. A client reports that a web portal takes a long time to load. How would you investigate the cause?

    Asked once · last asked Mar 21 · Scenario · Mid-level

  6. If Lighthouse reports a high LCP for a full-width banner, how would you optimize the banner using the Next.js Image component?

    Asked once · last asked Mar 21 · Scenario · Mid-level

  7. If a sign-in flow makes calls to four independent services sequentially, how would you speed it up?

    Asked once · last asked Mar 21 · Scenario · Mid-level

  8. What specific indicators would you watch for when evaluating the performance and reliability of state management logic during your review?

    Asked once · last asked May 15 · Scenario · Senior

  9. How can caching improve a website's performance?

    Asked once · last asked Jun 5 · Concept · Mid-level

  10. A website page loads very slowly. How would you optimize it, and what tools or services would you use to analyze its performance?

    Asked once · last asked Jun 5 · Scenario · Senior

  11. Why is it important to keep the above-the-fold content on a webpage lightweight?

    Asked once · last asked Jun 5 · Concept · Mid-level

  12. If you had to choose between prioritizing offline functionality or optimizing for speed in a mobile app, and couldn’t do both, which would you prioritize and why?

    Asked once · last asked Jun 24 · Scenario · Mid-level

Show 8 more
  1. How do you approach building and optimizing high-performance UI components?

    Asked once · last asked Jul 16 · Scenario · Mid-level

  2. When you see a slow LCP on a content heavy page, what are the first three things you check to pinpoint the main cause?

    Asked once · last asked Jul 16 · Scenario · Mid-level

  3. When DevTools shows the LCP as a text element, what specific things do you check to confirm whether fonts or CSS are delaying its paint?

    Asked once · last asked Jul 16 · Scenario · Senior

  4. If you find the LCP text is delayed because the main thread is busy, how do you pinpoint what’s blocking it in DevTools?

    Asked once · last asked Jul 16 · Scenario · Senior

  5. When ensuring that the UI correctly uses data fields from a back-end API, how do you typically make sure performance isn't compromised?

    Asked once · last asked Jul 11 · Scenario · Mid-level

  6. How do you prevent layout shift in a list when rows can gain content, such as error text, badges, or an inline editor, after the initial render?

    Asked once · last asked Jul 22 · Scenario · Senior

  7. When you're optimizing rendering efficiency across many rows in a large list, what strategy do you use to prevent unnecessary re-renders of unchanged items?

    Asked once · last asked Jul 22 · Scenario · Senior

  8. When animating UI state changes in rows, which CSS properties do you prefer to animate to avoid layout and reflow, and how do you verify the animation stays on the compositor thread?

    Asked once · last asked Jul 22 · Concept · Senior

    Other ways it was asked
    • “When animating UI state changes in those rows, which CSS properties do you prefer to animate to avoid layout and reflow, and how do you verify the animation stays on the compositor thread?”

Frontend architecture, testing, and delivery interview questions

Look at design systems, architecture, framework choices, testing, debugging, build tools, CI/CD, migrations, analytics, AI workflows, and team delivery. 141 questions.

  1. How do Angular and React differ, and how would you choose between them?

    Asked once · last asked Aug 10 · Concept · Mid-level

    Other ways it was asked
    • “What is the difference between React and Angular?”
  2. How do you ensure the quality of the code your team delivers?

    Asked once · last asked Oct 1 · Behavioral · Senior

  3. What is the most technically challenging feature you've had to build, and why was it challenging?

    Asked once · last asked Aug 25 · Behavioral · Mid-level

    Other ways it was asked
    • “What is the most challenging feature you have built, and what made it challenging?”
  4. What does a component in a design system contain?

    Asked once · last asked Oct 1 · Concept · Mid-level

  5. How would you improve the user experience through coding decisions about interactions, loading states, or error messages?

    Asked once · last asked Feb 2 · Behavioral · Junior

    Other ways it was asked
    • “Was there a specific coding decision you made to improve how users feel using your projects? Could you describe a feature you added, such as an interaction, loading state, or error message?”
  6. How would you keep working toward a deadline during a power or internet outage, and what backup options would you use?

    Asked once · last asked Feb 2 · Scenario

  7. What quality-assurance process or checklist would you use to determine whether a website is ready for release?

    Asked once · last asked Mar 20 · Mid-level

    Other ways it was asked
    • “How do you know when website development is ready? Do you use a quality-assurance process or checklist?”
  8. Tell me about a time you refactored a UI component and found a problem with its existing implementation. What did you do?

    Asked once · last asked Mar 24 · Behavioral · Mid-level

  9. How do you configure or extend Vite for a frontend project?

    Asked once · last asked Mar 24 · Tooling · Mid-level

  10. What complex UI component have you developed, and what made it challenging?

    Asked once · last asked Mar 24 · Behavioral · Mid-level

  11. How do you typically approach designing a component or module to ensure it remains maintainable and scalable as the project grows?

    Asked once · last asked Apr 16 · Design · Mid-level

  12. Could you talk about a time when you had to work within a constrained or unfamiliar codebase and make a significant change without breaking existing functionality?

    Asked once · last asked Apr 16 · Behavioral · Mid-level

Show 8 more
  1. How do you ensure components in a design system are reusable and maintainable across multiple projects?

    Asked once · last asked Oct 15 · Scenario · Mid-level

  2. What is the difference between SEO and GEO in web development?

    Asked once · last asked May 5 · Concept · Mid-level

  3. How do you approach refactoring code and rebuilding a platform?

    Asked once · last asked May 12 · Scenario · Mid-level

  4. How can frontend code separate business logic from presentation logic using a design pattern?

    Asked once · last asked May 14 · Concept · Mid-level

  5. How would you assess whether a code maintainability change improved the team's ability to work with the code?

    Asked once · last asked May 14 · Scenario · Senior

  6. How would you review front-end state management logic, such as in React or Vue, to ensure it is predictable, testable, and easy to debug?

    Asked once · last asked May 15 · Scenario · Senior

  7. How do you validate that state management code handles edge cases, such as unexpected null values or erroneous user input, without breaking the application?

    Asked once · last asked May 15 · Scenario · Senior

  8. How do you evaluate whether JavaScript code is structured so that new features can be added without introducing regressions?

    Asked once · last asked May 15 · Scenario · Senior

Live coding round next? Coding mode in the MeetAssist desktop app solves the problem on your screen, with your phone as the remote.

How this list is made

Every question here was asked by a real interviewer in a real job interview that a candidate ran MeetAssist in. After the call, the interviewer's questions are pulled from the transcript. Practice sessions, tests, exams and anything that was not a job interview are dropped.

Questions are rewritten so they make sense on their own: names of people, employers and clients are removed, and speech-to-text mistakes are fixed. Small talk, logistics and questions about one candidate's own résumé are left out. Rephrasings of the same question are merged, and the count is the number of different interviews it came up in.

The interviews come from candidates who use MeetAssist, so they lean towards software, data and AI roles: the shares describe these interviews, not every Frontend Developer interview. Answers to the most asked questions are written and checked by an editor; a "common mistake" is shown only when reviews of real answers in these interviews show it, with the count.

123 interviews, 99 candidates, Oct 2025 to Oct 2026. Updated every month with new interviews.