Frontend Development Rapid-Fire Questions & Answers
50 questions for the rapid-fire stage — 32 easy, 17 medium, 1 hard.
About the rapid-fire round
Rapid-fire questions are quick definitions and one-line answers that interviewers fire at the start or end of a round to check your Frontend Development basics. Aim to answer each in under 20 seconds.
Tips for the rapid-fire round
- Answer in one or two sentences, then stop.
- If you don't know, say so quickly and move on; don't guess at length.
- Revise these the morning of the interview.
- Practise with a friend who reads them in random order.
Explain dependencies, devDependencies and peerDependencies.
Show answer
How does destructuring with default values work?
Show answer
Does native CSS support nesting now?
Show answer
What colour contrast ratios does WCAG require?
Show answer
What is the difference between local UI state, global state and server state?
Show answer
How does the History API enable client-side routing?
Show answer
Which tsconfig options are important for a strict codebase?
Show answer
How do environment variables work in frontend builds, and what is the risk?
Show answer
What is transpilation and how does browserslist control it?
Show answer
What are union and intersection types?
Show answer
Why are dvh and svh units better than vh on mobile?
Show answer
What is prefers-reduced-motion and why should you respect it?
Show answer
What is a Progressive Web App?
Show answer
What does the :has() selector allow you to do?
Show answer
How do you choose the right image format and size?
Show answer
Explain optional chaining and the nullish coalescing operator.
Show answer
Why are many teams moving from Jest to Vitest?
Show answer
Why does await inside forEach not wait for each item?
Show answer
How does client-side rendering affect SEO and social sharing?
Show answer
What is the difference between ES modules and CommonJS?
Show answer
Compare SPA, MPA, server-side rendering and static site generation.
Show answer
How do HTTP/2 and HTTP/3 change frontend bundling strategy?
Show answer
How does Tailwind CSS keep the final CSS file small?
Show answer
Compare IntersectionObserver, ResizeObserver and MutationObserver.
Show answer
What is the difference between type and interface in TypeScript?
Show answer
Why use requestAnimationFrame instead of setTimeout for animations?
Show answer
When should you use Map and Set instead of plain objects and arrays?
Show answer
What is the difference between unit, integration and end-to-end tests?
Show answer
What do caret and tilde mean in package versions, and why commit the lockfile?
Show answer
What are source maps and should they be deployed to production?
Show answer
What does component-driven development mean?
Show answer
What are the pros and cons of snapshot testing?
Show answer
Compare CSS Modules, CSS-in-JS and utility-first CSS.
Show answer
Compare npm, pnpm and Yarn.
Show answer
What is a JavaScript bundler and why do frontend projects need one?
Show answer
At a high level, how does React's virtual DOM and reconciliation work?
Show answer
Explain any, unknown and never.
Show answer
What is Hot Module Replacement?
Show answer
What are higher-order functions and currying?
Show answer
What are pure functions and why does immutability matter in frontend code?
Show answer
What is the guiding principle of Testing Library and why query by role?
Show answer
How do HTTP caching headers work for frontend assets?
Show answer
Explain preload, prefetch and preconnect.
Show answer
What is the testing pyramid, and how does the testing trophy differ?
Show answer
Explain the utility types Partial, Pick, Omit and Record.
Show answer
How can web fonts slow a page down and how do you optimise them?
Show answer
What are generics and why are they useful?
Show answer
What are Core Web Vitals and their good thresholds?
Show answer
How do browser permission APIs like Geolocation and Notifications work?
Show answer
Frequently asked questions
What happens in the Frontend Development rapid-fire round?
Rapid-fire questions are quick definitions and one-line answers that interviewers fire at the start or end of a round to check your Frontend Development basics. Aim to answer each in under 20 seconds.
How do I clear the rapid-fire round?
Answer in one or two sentences, then stop. If you don't know, say so quickly and move on; don't guess at length. Revise these the morning of the interview.
Which round comes next?
A typical order is online assessment, telephonic screening, one or two technical rounds, a managerial round and HR. Use the other round pages to practise each stage.