Frontend Development Last-Minute Revision
Quickly revise the questions you picked. Add questions from the interview-questions lists with Save to → Last-Minute Revision.
30 quick revision notes for Frontend Development
- ES module imports are static, which lets bundlers tree-shake unused exports; CommonJS require cannot be shaken reliably.
- Nullish coalescing ?? falls back only for null or undefined, while || also replaces 0, false and empty strings.
- Promise.allSettled waits for every promise and reports each outcome, while Promise.all rejects on the first failure.
- await inside forEach does not wait; use for...of for sequential work or Promise.all with map for parallel work.
- Microtasks like promise callbacks always run before the next macrotask such as a setTimeout callback.
- AbortController cancels in-flight fetch requests and prevents stale responses from overwriting newer results.
- unknown forces you to narrow a value before use, making it the safe alternative to any for external data.
- Discriminated unions with a shared status field make impossible UI states unrepresentable in TypeScript.
- satisfies validates a value against a type while keeping the value's more specific inferred type.
- TypeScript types are erased at runtime, so API responses still need runtime validation with tools like Zod.
- Web Workers offload heavy computation from the main thread; service workers intercept network requests for offline support.
- Stale-while-revalidate serves cached content instantly and updates the cache in the background.
- IntersectionObserver replaces scroll listeners for lazy loading, infinite scroll and impression tracking.
- Always check event.origin in message listeners and pass an exact target origin to postMessage.
- Cascade layers decide priority between groups of styles regardless of selector specificity.
- :where() always has zero specificity, while :is() takes the specificity of its most specific argument.
- WCAG AA requires 4.5 to 1 contrast for normal text and 3 to 1 for large text and UI components.
- Use 100dvh or 100svh instead of 100vh for full-height mobile layouts affected by browser toolbars.
- Good Core Web Vitals are LCP up to 2.5 seconds, INP up to 200 milliseconds and CLS up to 0.1.
- Any main-thread task longer than 50 milliseconds is a long task and can delay user interactions.
- Hashed asset filenames can be cached for a year with immutable, while HTML should use no-cache.
- Fonts must be preloaded with the crossorigin attribute, otherwise the browser fetches them twice.
- Field data from real users decides Core Web Vitals ranking, not a single Lighthouse lab score.
- Vite serves native ES modules in development and uses Rollup or Rolldown for optimised production builds.
- Frontend environment variables are embedded into the bundle, so they must never contain secrets.
- Commit the lockfile and use npm ci in CI so every environment installs identical dependency versions.
- Testing Library recommends getByRole queries because they mirror how users and assistive technology find elements.
- Replace fixed sleeps with auto-waiting assertions to remove most causes of flaky end-to-end tests.
- Separate server state, global client state and local UI state; tools like TanStack Query manage server state.
- Store auth tokens in HttpOnly Secure SameSite cookies rather than localStorage to limit XSS damage.
Night-before checklist
- Revise your saved questions on this page once, aloud.
- Read the quick notes and mark any you cannot explain in one line.
- Rehearse a two-minute self-introduction and two project stories.
- Keep CV, ID, laptop charger and interview link ready; sleep on time.
Frequently asked questions
How does Last-Minute Revision work?
On any question page, open Save to → Last-Minute Revision. Saved questions appear here with their answers, so the night before an interview you revise only what you found hard.
Is my list saved?
Yes, in this browser. Guests can save 5 questions; free accounts can save 20 for revision and 100 for the 7-day plan.
What should I revise last before a Frontend Development interview?
Your saved misses first, then the quick notes on this page, then one or two project stories. Avoid learning brand-new topics the night before.
Find questions to save
Company-wise Frontend Development questionsExperience-wise Frontend Development questionsRole-wise Frontend Development questionsCity-wise Frontend Development questionsMost asked Frontend Development questionsScenario-based questionsPractical / hands-on questionsHR & behavioural questionsFrontend Development mock interviewOnline assessment questionsTechnical round questionsManagerial round questionsFrontend Development topic sheets