Web Development Interview Questions
REST APIs, HTTP, authentication, CORS and web fundamentals.
224 questions
Popular Searches
1. What is a REST API?
easyAPIs 5 mins2. Cookies vs Sessions vs JWT
mediumAuthentication 6 mins3. What is CORS?
mediumWeb Security 5 mins4. Difference Between GET and POST
easyHTTP 4 mins5. REST vs GraphQL: What Is the Difference?
mediumAPIs 5 mins6. What Is OAuth?
mediumAuthentication 5 mins7. What Is the Virtual DOM?
mediumFrontend Frameworks 5 mins8. What Is Web Caching?
mediumPerformance 5 mins9. What Is Webpack and Bundling?
mediumBuild Tools 5 mins10. Server-Side vs Client-Side Rendering
mediumRendering 5 mins11. What is a WebSocket?
mediumNetworking 5 mins12. What is the Same-Origin Policy?
mediumSecurity 5 mins13. What is CSRF?
mediumSecurity 5 mins14. What is XSS?
mediumSecurity 5 mins15. What is a Single-Page Application?
easyArchitecture 5 mins16. What is Lazy Loading?
easyPerformance 5 mins17. What is a Service Worker?
mediumBrowser APIs 6 mins18. What is Content Security Policy (CSP)?
mediumSecurity 6 mins19. What are HTTP Caching Headers?
mediumPerformance 6 mins20. Debouncing vs Throttling
mediumPerformance 5 mins21. What is the DOM?
easyBrowser Fundamentals 4 mins22. What is Progressive Enhancement?
mediumWeb Architecture 5 mins23. What is an HTTP Status Code?
easyHTTP Fundamentals 4 mins24. What is API Versioning?
mediumAPI Design 5 mins25. What Is a Closure in JavaScript?
mediumLanguage Fundamentals 5 mins26. What Is Hoisting in JavaScript?
easyLanguage Fundamentals 4 mins27. What Is the JavaScript Event Loop?
hardRuntime & Concurrency 6 mins28. Promises vs async/await: What Is the Difference?
mediumRuntime & Concurrency 5 mins29. What Is Prototypal Inheritance in JavaScript?
mediumLanguage Fundamentals 5 mins30. How Does the `this` Keyword Work in JavaScript?
mediumJavaScript Fundamentals 5 mins31. What Is Currying in JavaScript?
mediumFunctional Programming 5 mins32. What Is the Difference Between Event Bubbling and Capturing?
mediumDOM Events 5 mins33. What Is Event Delegation and Why Use It?
mediumDOM Events 5 mins34. What Is the Difference Between call, apply, and bind?
mediumJavaScript Fundamentals 5 mins35. Shallow Copy vs Deep Copy: What Is the Difference?
mediumJavaScript Fundamentals 5 mins36. What Is the Temporal Dead Zone in JavaScript?
mediumJavaScript Fundamentals 5 mins37. What Is the IIFE Pattern in JavaScript?
easyJavaScript Fundamentals 4 mins38. What Are Generators in JavaScript and How Do They Work?
hardJavaScript Fundamentals 6 mins39. What Are Symbols in JavaScript and Why Use Them?
mediumJavaScript Fundamentals 5 mins40. WeakMap vs WeakSet: What Is the Difference?
mediumJavaScript Fundamentals 5 mins41. What Are Proxy and Reflect in JavaScript?
hardJavaScript Fundamentals 6 mins42. What Are Tagged Template Literals?
mediumJavaScript Fundamentals 5 mins43. What Is Optional Chaining in JavaScript?
easyJavaScript Fundamentals 4 mins44. What Is Destructuring Assignment in JavaScript?
easyJavaScript Fundamentals 4 mins45. Spread vs Rest Operator: What Is the Difference?
easyJavaScript Fundamentals 4 mins46. ESM vs CommonJS: What Is the Difference?
mediumJavaScript Modules 5 mins47. What Is Tree-Shaking in JavaScript?
mediumBuild Tools 5 mins48. What Is Memoization in JavaScript?
mediumPerformance 5 mins49. Microtask vs Macrotask Queue: What Is the Difference?
hardJavaScript Event Loop 6 mins50. What Is Strict Mode in JavaScript?
easyJavaScript Fundamentals 4 mins51. What Is Type Coercion in JavaScript?
mediumJavaScript Fundamentals 5 mins52. What Is NaN and How Do You Check for It?
easyJavaScript Fundamentals 4 mins53. What Is the CSS Box Model?
easyCSS Fundamentals 5 mins54. CSS Flexbox vs Grid: What Is the Difference?
mediumCSS Layout 5 mins55. How Does CSS Specificity Work?
mediumCSS Fundamentals 5 mins56. What Are the CSS Position Values and How Do They Differ?
mediumCSS Layout 5 mins57. How Do z-index and Stacking Contexts Work?
hardCSS Layout 6 mins58. What Are CSS Custom Properties (CSS Variables)?
mediumCSS Fundamentals 5 mins59. What Are CSS Media Queries and How Do They Work?
easyResponsive Design 4 mins60. What Are the Core Principles of Responsive Web Design?
mediumCSS & Layout 5 mins61. What Are CSS Pseudo-Elements and How Do They Differ From Pseudo-Classes?
easyCSS & Layout 4 mins62. What Is the Difference Between CSS Transitions and CSS Animations?
mediumCSS & Layout 5 mins63. How Does CSS Transform Enable GPU-Accelerated Animation?
hardCSS & Performance 6 mins64. What Is BEM Methodology and Why Use It in CSS?
easyCSS Architecture 4 mins65. What Is the CSS-in-JS Approach and When Should You Use It?
mediumStyling Architecture 5 mins66. What Is Critical CSS Extraction and Why Does It Matter?
mediumPerformance 5 mins67. What Is the Difference Between Reflow and Repaint?
mediumBrowser Rendering 5 mins68. How Does React Reconciliation Work?
mediumFrontend Frameworks 5 mins69. Why Does React Need Keys for List Items?
easyFrontend Frameworks 4 mins70. What Are the Rules of Hooks and Why Do They Exist?
mediumReact Hooks 5 mins71. useEffect vs useLayoutEffect: What Is the Difference?
mediumReact Hooks 5 mins72. useMemo vs useCallback: What Is the Difference?
mediumReact Hooks 5 mins73. Context API vs Redux: When Should You Use Each?
mediumState Management 6 mins74. Controlled vs Uncontrolled Components: What Is the Difference?
easyForms 5 mins75. What Is Prop Drilling and How Do You Avoid It?
easyReact Component Design 5 mins76. What Is React Fiber Architecture?
hardReact Internals 6 mins77. What Is Hydration in React?
mediumServer-Side Rendering 5 mins78. What Is React Suspense and How Does It Work?
mediumReact Concurrent Features 5 mins79. What Are Error Boundaries in React?
mediumReact Error Handling 5 mins80. What Are React Portals and When Do You Use Them?
mediumReact 5 mins81. What Are the Main State Management Patterns in Frontend Apps?
mediumArchitecture 6 mins82. SSR vs SSG vs ISR: What Is the Difference?
mediumRendering Strategies 6 mins83. What Is the Critical Rendering Path?
mediumBrowser Performance 6 mins84. What Are Core Web Vitals — LCP, FID/INP, and CLS?
mediumWeb Performance 6 mins85. What Are Code-Splitting Strategies and Why Do They Matter?
mediumPerformance 5 mins86. Preload vs Prefetch: What Is the Difference?
mediumPerformance 5 mins87. What Are Key Image Optimization Techniques for the Web?
mediumPerformance 5 mins88. Gzip vs Brotli: How Do These Compression Algorithms Compare?
mediumPerformance 5 mins89. What Was HTTP/2 Server Push, and Why Was It Deprecated?
mediumNetworking 5 mins90. What Are Resource Hints (preload, prefetch, preconnect)?
mediumPerformance 5 mins91. What Is the Difference Between defer and async Scripts?
easyPerformance 4 mins92. What Is List Virtualization and Why Use It?
mediumFrontend Performance 5 mins93. What Is Clickjacking and How Do You Prevent It?
mediumWeb Security 5 mins94. What Is SQL Injection and How Do You Prevent It?
mediumWeb Security 5 mins95. What Are the Secure and HttpOnly Cookie Attributes?
mediumWeb Security 5 mins96. What Is the SameSite Cookie Attribute and How Does It Prevent CSRF?
mediumWeb Security 5 mins97. What Is Subresource Integrity (SRI)?
mediumWeb Security 5 mins98. What Are JWT Security Best Practices?
hardAuthentication 6 mins99. What Is a Session Fixation Attack and How Do You Prevent It?
hardWeb Security 6 mins100. What Is HTTPS and What Causes Mixed Content Errors?
mediumSecurity 5 mins101. How Do You Design a Good GraphQL Schema?
hardAPIs 6 mins102. WebSockets vs Server-Sent Events: When to Use Each?
mediumReal-Time Communication 5 mins103. What Are Webhooks and How Do They Work?
easyAPIs 4 mins104. What Are Common API Rate Limiting Strategies?
mediumAPI Design 5 mins105. What Is Idempotency in REST APIs?
mediumAPIs 5 mins106. HTTP Methods: Safe vs. Idempotent, What Is the Difference?
mediumAPIs 5 mins107. What Do the HTTP Status Code Families Mean?
easyAPIs 5 mins108. What Are the Main API Pagination Strategies?
mediumAPIs 6 mins109. What Are the Main API Authentication Methods?
mediumAuthentication 6 mins110. What Is Refresh Token Rotation?
hardAuthentication 6 mins111. What Are CORS Preflight Requests?
mediumBrowser Security 5 mins112. What Does Babel Do When Transpiling JavaScript?
mediumBuild Tools 5 mins113. ES Modules vs. Bundlers: How Do They Relate?
mediumBuild Tools 5 mins114. What Are Source Maps and Why Do They Matter?
easyBuild Tools 4 mins115. What Is ESLint and Why Does Linting Matter?
easyTooling 5 mins116. DOM vs Shadow DOM: What Is the Difference?
mediumBrowser Internals 5 mins117. What Are Web Components?
mediumFrontend Frameworks 5 mins118. What Are Service Worker Caching Strategies?
hardPerformance 6 mins119. What Is a Progressive Web App (PWA)?
mediumPerformance 5 mins120. IndexedDB vs localStorage vs Cookies: When Do You Use Each?
mediumBrowser Storage 5 mins121. What Are the Size Limits of Web Storage Mechanisms?
easyBrowser Storage 4 mins122. What Are ARIA Attributes and When Should You Use Them?
mediumAccessibility 5 mins123. Why Does Semantic HTML Matter?
easyAccessibility 4 mins124. How Do You Build Keyboard-Accessible Web Interfaces?
mediumAccessibility 5 mins125. Repaint vs Reflow: How Do They Affect Rendering Performance?
mediumRendering Performance 5 mins126. What Is requestAnimationFrame and When Should You Use It?
mediumRendering Performance 5 mins127. What Is the Intersection Observer API and Why Use It?
mediumBrowser APIs 5 mins128. What Is the Mutation Observer API and When Should You Use It?
mediumBrowser APIs 5 mins129. What Is the Resize Observer API and Why Is It Useful?
mediumBrowser APIs 5 mins130. map, filter, and reduce: How Do They Differ?
easyJavaScript Arrays 5 mins131. What Does Array Sort Stability Mean?
mediumJavaScript Arrays 5 mins132. How Does the Event Loop Order Microtasks and Macrotasks?
hardJavaScript Runtime 6 mins133. Promise.all vs Promise.allSettled: When to Use Each?
mediumJavaScript Promises 5 mins134. Promise.race vs Promise.any: What Sets Them Apart?
mediumJavaScript Promises 5 mins135. What Are Async Generators in JavaScript?
hardJavaScript Language 6 mins136. How Do Modern Module Bundlers Like Vite, esbuild, and Webpack Compare?
mediumBuild Tools 6 mins137. How Does CSS Grid grid-template-areas Work?
mediumCSS Layout 5 mins138. What Do justify-content, align-items, and align-self Do in Flexbox?
easyCSS Layout 4 mins139. What Are CSS Container Queries and How Do They Differ from Media Queries?
mediumCSS Layout 5 mins140. What Are CSS Cascade Layers (@layer) and Why Do They Matter?
mediumCSS Architecture 5 mins141. How Does Native CSS Nesting Syntax Work?
easyCSS Architecture 4 mins142. What Are CSS Viewport Units (vh, vw, dvh, svh, lvh)?
mediumCSS Layout 5 mins143. How Do You Implement Dark Mode in a Web App?
mediumCSS & Theming 6 mins144. How Do CSS Custom Media Queries (@custom-media) Work?
mediumCSS Architecture 5 mins145. What Are React Server Components?
hardReact Architecture 6 mins146. What Are the Basics of the Next.js App Router?
mediumReact Architecture 5 mins147. What Is React Concurrent Rendering?
hardReact Internals 6 mins148. How Does React Strict Mode Change Component Behavior?
mediumReact Internals 5 mins149. What Is forwardRef in React and When Do You Need It?
mediumReact APIs 5 mins150. How Do React.lazy and Suspense Enable Code Splitting?
mediumFrontend Performance 5 mins151. How Do You Design a Good Custom React Hook?
mediumReact Patterns 5 mins152. What Are Higher-Order Components (HOCs) in React?
mediumReact Patterns 5 mins153. What Is the Render Props Pattern in React?
mediumReact Patterns 5 mins154. What Is the Compound Components Pattern in React?
mediumReact Patterns 5 mins155. What Are State Machines and Why Use Them in Frontend Code?
mediumApplication Architecture 5 mins156. What Are Optimistic UI Updates and How Do You Implement Them?
mediumFrontend Patterns 5 mins157. How Do You Implement a Debounced Search Input?
easyPerformance 4 mins158. How Do You Implement Infinite Scroll?
mediumFrontend Patterns 5 mins159. What Are Skeleton Loading Screens and Why Use Them?
easyUser Experience 4 mins160. How Do You Test a Web App for Accessibility?
mediumAccessibility 5 mins161. How Do You Manage Focus in a Single-Page Application?
mediumAccessibility 5 mins162. What Are ARIA Live Regions and When Do You Use Them?
mediumAccessibility 5 mins163. What Color Contrast Ratios Does WCAG Require and Why?
easyAccessibility 4 mins164. How Do You Make Custom Components Screen-Reader Compatible?
hardAccessibility 6 mins165. What Is the Browser Rendering Pipeline?
mediumBrowser Internals 5 mins166. What Is Layout Thrashing and How Do You Avoid It?
hardPerformance 6 mins167. What Are Passive Event Listeners and Why Do They Matter?
mediumBrowser Events 5 mins168. When Should You Use requestIdleCallback?
mediumBrowser APIs 5 mins169. What Are Web Workers and When Should You Use Them?
mediumConcurrency 5 mins170. Shared Workers vs Web Workers: What Is the Difference?
mediumBrowser APIs 5 mins171. What Is Offline-First Architecture?
mediumProgressive Web Apps 6 mins172. What Is the Background Sync API?
mediumProgressive Web Apps 5 mins173. How Do Web Push Notifications Work?
mediumProgressive Web Apps 6 mins174. What Is the Cache API and How Does It Differ From HTTP Caching?
mediumProgressive Web Apps 6 mins175. HTTP/1.1 vs HTTP/2: What Changed?
mediumNetworking 5 mins176. What Is HTTP/3 and How Does QUIC Change Things?
hardNetworking 6 mins177. What Is DNS Prefetching and When Should You Use It?
easyPerformance 4 mins178. What Happens During a TLS Handshake?
mediumSecurity 5 mins179. What CDN Caching Strategies Should You Know?
mediumPerformance 6 mins180. Monorepo vs Polyrepo for Frontend Projects: How Do You Choose?
mediumArchitecture 5 mins181. What Is Micro-Frontend Architecture?
hardArchitecture 6 mins182. What Is Webpack Module Federation and How Does It Work?
hardBuild Tools 6 mins183. How Do Feature Flags Work in Frontend Development?
mediumDelivery Practices 5 mins184. How Does A/B Testing Work on the Frontend?
mediumDelivery Practices 6 mins185. What Are Form Validation Strategies on the Web?
mediumForms & Input 5 mins186. Controlled Forms in React: Performance Tradeoffs?
mediumForms & Input 5 mins187. How Do You Handle File Uploads on the Web?
mediumForms & Input 5 mins188. How Does the HTML5 Drag and Drop API Work?
mediumBrowser APIs 5 mins189. How Does the Web Clipboard API Work?
mediumBrowser APIs 5 mins190. How Does the Geolocation API Work in the Browser?
easyBrowser APIs 5 mins191. What Is the Web Animations API and How Does It Compare to CSS Animations?
mediumBrowser APIs 5 mins192. Canvas vs SVG: When Should You Use Each for Web Graphics?
mediumGraphics & Rendering 5 mins193. What Is WebGL and How Does It Render Graphics in the Browser?
hardGraphics & Rendering 6 mins194. What Is the Web Audio API and How Does the Audio Graph Work?
mediumBrowser APIs 6 mins195. How Does Browser Storage Quota Management Work?
mediumBrowser APIs 5 mins196. How Do You Manage Third-Party Script Performance?
mediumPerformance 5 mins197. How Do Lighthouse Audits Work and What Do They Measure?
mediumPerformance 5 mins198. How Do You Use Bundle Analysis Tools to Optimize JavaScript?
mediumBuild Tools 5 mins199. What Is Dead Code Elimination and How Does It Work?
mediumBuild Tools 5 mins200. What Is CSS Specificity and How Do You Resolve Conflicts?
mediumCSS Fundamentals 5 mins201. What Is the Atomic CSS Approach?
mediumCSS Architecture 5 mins202. What Is Utility-First CSS and How Does It Differ From Semantic CSS?
mediumCSS Architecture 5 mins203. What Are CSS Modules and How Do They Solve Global Scope Problems?
mediumCSS Architecture 5 mins204. What Are the Tradeoffs of Using Styled-Components (CSS-in-JS)?
hardCSS Architecture 6 mins205. TypeScript vs JavaScript: What Is the Difference?
easyTypeScript Fundamentals 5 mins206. What Is Type Narrowing in TypeScript?
mediumTypeScript Fundamentals 5 mins207. What Are Generics in TypeScript and Why Use Them?
mediumTypeScript Fundamentals 5 mins208. What Are TypeScript Utility Types Like Partial and Pick?
mediumTypeScript Fundamentals 5 mins209. What Are Discriminated Unions in TypeScript?
hardTypeScript Fundamentals 6 mins210. Monolithic vs Microservice: How Does the Frontend Integrate?
mediumArchitecture 5 mins211. What Is the Backend-for-Frontend (BFF) Pattern?
mediumArchitecture 5 mins212. What Is the API Gateway Pattern?
mediumArchitecture 5 mins213. How Does Caching Differ Between GraphQL and REST?
hardAPIs 6 mins214. What Is the GraphQL N+1 Problem and How Do You Solve It?
hardAPIs 6 mins215. What Are HTTP Security Headers and Why Do They Matter?
mediumWeb Security 5 mins216. How Do CSP Nonces Prevent Inline Script Injection?
hardWeb Security 6 mins217. What Does the Referrer-Policy Header Control?
mediumWeb Security 5 mins218. What Is the Permissions-Policy Header Used For?
mediumWeb Security 5 mins219. What Is the Trusted Types API and How Does It Prevent DOM XSS?
hardWeb Security 6 mins220. What Is a Web Performance Budget?
mediumPerformance 5 mins221. What Is the Time to Interactive (TTI) Metric?
mediumPerformance 5 mins222. What Is First Contentful Paint (FCP)?
easyPerformance 4 mins223. What Is Total Blocking Time (TBT)?
mediumPerformance 5 mins224. What Is the Speed Index Metric?
mediumPerformance 5 mins