Master your frontend interview
A complete preparation guide covering HTML, CSS, JavaScript, TypeScript, React, Next.js, DSA, and more — every question paired with a clear answer and examples.
Browse by topic
Each topic has its own page with sections and expandable question-and-answer cards.
HTML & Browser Fundamentals
Core concepts of HTML, the DOM, browser rendering pipeline, and how the web works.
CSS
Cascade, specificity, box model, layout systems (Flexbox & Grid), responsive design, and performance.
JavaScript Fundamentals
Types, scope, closures, the event loop, async patterns, and core language mechanics.
JavaScript Objects & Advanced Concepts
Objects, prototypes, memory management, the event loop, promises, and async/await.
JavaScript Collections & Modules
Map, Set, WeakMap, WeakSet, ES Modules, CommonJS, dynamic imports, and tree shaking.
JavaScript Array Methods
Interview-ready explanations of map, find, filter, reduce, and the array methods frontend developers use every day.
TypeScript
Types, interfaces, generics, utility types, type narrowing, and advanced type system features.
Authentication & JWT
Authentication vs authorization, sessions, JWT, OAuth flows, and token management.
Frontend Security
XSS, CSRF, clickjacking, secure storage, cookie security, and rate limiting.
React.js
Components, hooks, virtual DOM, reconciliation, state management, and performance.
Next.js
Routing, App Router, server/client components, rendering strategies, and deployment.
Testing
Unit, integration, and E2E testing with Jest, RTL, Cypress, Playwright, and coverage.
Frontend Performance
Core Web Vitals, bundle optimization, lazy loading, caching, CDN, and build tools.
Frontend System Design (Senior Level)
Architecture, component design, performance, security, and real project questions.
Practical Preparation Checklist
Hands-on projects to build before your interview.
DSA for Frontend Developers
Data structures, algorithms, and problem-solving patterns that show up in frontend interviews and real UI work.
Final Interview Tips
Strategy and mindset advice for acing your frontend interview.