100% Free Forever
AI-Powered Learning
Industry Expert Content
Certificates & Badges
Learn At Your Own Pace

Web Development Interview Questions

REST APIs, HTTP, authentication, CORS and web fundamentals.

224 questions

  1. 1. What is a REST API?

    easyAPIs 5 mins
  2. 2. Cookies vs Sessions vs JWT

    mediumAuthentication 6 mins
  3. 3. What is CORS?

    mediumWeb Security 5 mins
  4. 4. Difference Between GET and POST

    easyHTTP 4 mins
  5. 5. REST vs GraphQL: What Is the Difference?

    mediumAPIs 5 mins
  6. 6. What Is OAuth?

    mediumAuthentication 5 mins
  7. 7. What Is the Virtual DOM?

    mediumFrontend Frameworks 5 mins
  8. 8. What Is Web Caching?

    mediumPerformance 5 mins
  9. 9. What Is Webpack and Bundling?

    mediumBuild Tools 5 mins
  10. 10. Server-Side vs Client-Side Rendering

    mediumRendering 5 mins
  11. 11. What is a WebSocket?

    mediumNetworking 5 mins
  12. 12. What is the Same-Origin Policy?

    mediumSecurity 5 mins
  13. 13. What is CSRF?

    mediumSecurity 5 mins
  14. 14. What is XSS?

    mediumSecurity 5 mins
  15. 15. What is a Single-Page Application?

    easyArchitecture 5 mins
  16. 16. What is Lazy Loading?

    easyPerformance 5 mins
  17. 17. What is a Service Worker?

    mediumBrowser APIs 6 mins
  18. 18. What is Content Security Policy (CSP)?

    mediumSecurity 6 mins
  19. 19. What are HTTP Caching Headers?

    mediumPerformance 6 mins
  20. 20. Debouncing vs Throttling

    mediumPerformance 5 mins
  21. 21. What is the DOM?

    easyBrowser Fundamentals 4 mins
  22. 22. What is Progressive Enhancement?

    mediumWeb Architecture 5 mins
  23. 23. What is an HTTP Status Code?

    easyHTTP Fundamentals 4 mins
  24. 24. What is API Versioning?

    mediumAPI Design 5 mins
  25. 25. What Is a Closure in JavaScript?

    mediumLanguage Fundamentals 5 mins
  26. 26. What Is Hoisting in JavaScript?

    easyLanguage Fundamentals 4 mins
  27. 27. What Is the JavaScript Event Loop?

    hardRuntime & Concurrency 6 mins
  28. 28. Promises vs async/await: What Is the Difference?

    mediumRuntime & Concurrency 5 mins
  29. 29. What Is Prototypal Inheritance in JavaScript?

    mediumLanguage Fundamentals 5 mins
  30. 30. How Does the `this` Keyword Work in JavaScript?

    mediumJavaScript Fundamentals 5 mins
  31. 31. What Is Currying in JavaScript?

    mediumFunctional Programming 5 mins
  32. 32. What Is the Difference Between Event Bubbling and Capturing?

    mediumDOM Events 5 mins
  33. 33. What Is Event Delegation and Why Use It?

    mediumDOM Events 5 mins
  34. 34. What Is the Difference Between call, apply, and bind?

    mediumJavaScript Fundamentals 5 mins
  35. 35. Shallow Copy vs Deep Copy: What Is the Difference?

    mediumJavaScript Fundamentals 5 mins
  36. 36. What Is the Temporal Dead Zone in JavaScript?

    mediumJavaScript Fundamentals 5 mins
  37. 37. What Is the IIFE Pattern in JavaScript?

    easyJavaScript Fundamentals 4 mins
  38. 38. What Are Generators in JavaScript and How Do They Work?

    hardJavaScript Fundamentals 6 mins
  39. 39. What Are Symbols in JavaScript and Why Use Them?

    mediumJavaScript Fundamentals 5 mins
  40. 40. WeakMap vs WeakSet: What Is the Difference?

    mediumJavaScript Fundamentals 5 mins
  41. 41. What Are Proxy and Reflect in JavaScript?

    hardJavaScript Fundamentals 6 mins
  42. 42. What Are Tagged Template Literals?

    mediumJavaScript Fundamentals 5 mins
  43. 43. What Is Optional Chaining in JavaScript?

    easyJavaScript Fundamentals 4 mins
  44. 44. What Is Destructuring Assignment in JavaScript?

    easyJavaScript Fundamentals 4 mins
  45. 45. Spread vs Rest Operator: What Is the Difference?

    easyJavaScript Fundamentals 4 mins
  46. 46. ESM vs CommonJS: What Is the Difference?

    mediumJavaScript Modules 5 mins
  47. 47. What Is Tree-Shaking in JavaScript?

    mediumBuild Tools 5 mins
  48. 48. What Is Memoization in JavaScript?

    mediumPerformance 5 mins
  49. 49. Microtask vs Macrotask Queue: What Is the Difference?

    hardJavaScript Event Loop 6 mins
  50. 50. What Is Strict Mode in JavaScript?

    easyJavaScript Fundamentals 4 mins
  51. 51. What Is Type Coercion in JavaScript?

    mediumJavaScript Fundamentals 5 mins
  52. 52. What Is NaN and How Do You Check for It?

    easyJavaScript Fundamentals 4 mins
  53. 53. What Is the CSS Box Model?

    easyCSS Fundamentals 5 mins
  54. 54. CSS Flexbox vs Grid: What Is the Difference?

    mediumCSS Layout 5 mins
  55. 55. How Does CSS Specificity Work?

    mediumCSS Fundamentals 5 mins
  56. 56. What Are the CSS Position Values and How Do They Differ?

    mediumCSS Layout 5 mins
  57. 57. How Do z-index and Stacking Contexts Work?

    hardCSS Layout 6 mins
  58. 58. What Are CSS Custom Properties (CSS Variables)?

    mediumCSS Fundamentals 5 mins
  59. 59. What Are CSS Media Queries and How Do They Work?

    easyResponsive Design 4 mins
  60. 60. What Are the Core Principles of Responsive Web Design?

    mediumCSS & Layout 5 mins
  61. 61. What Are CSS Pseudo-Elements and How Do They Differ From Pseudo-Classes?

    easyCSS & Layout 4 mins
  62. 62. What Is the Difference Between CSS Transitions and CSS Animations?

    mediumCSS & Layout 5 mins
  63. 63. How Does CSS Transform Enable GPU-Accelerated Animation?

    hardCSS & Performance 6 mins
  64. 64. What Is BEM Methodology and Why Use It in CSS?

    easyCSS Architecture 4 mins
  65. 65. What Is the CSS-in-JS Approach and When Should You Use It?

    mediumStyling Architecture 5 mins
  66. 66. What Is Critical CSS Extraction and Why Does It Matter?

    mediumPerformance 5 mins
  67. 67. What Is the Difference Between Reflow and Repaint?

    mediumBrowser Rendering 5 mins
  68. 68. How Does React Reconciliation Work?

    mediumFrontend Frameworks 5 mins
  69. 69. Why Does React Need Keys for List Items?

    easyFrontend Frameworks 4 mins
  70. 70. What Are the Rules of Hooks and Why Do They Exist?

    mediumReact Hooks 5 mins
  71. 71. useEffect vs useLayoutEffect: What Is the Difference?

    mediumReact Hooks 5 mins
  72. 72. useMemo vs useCallback: What Is the Difference?

    mediumReact Hooks 5 mins
  73. 73. Context API vs Redux: When Should You Use Each?

    mediumState Management 6 mins
  74. 74. Controlled vs Uncontrolled Components: What Is the Difference?

    easyForms 5 mins
  75. 75. What Is Prop Drilling and How Do You Avoid It?

    easyReact Component Design 5 mins
  76. 76. What Is React Fiber Architecture?

    hardReact Internals 6 mins
  77. 77. What Is Hydration in React?

    mediumServer-Side Rendering 5 mins
  78. 78. What Is React Suspense and How Does It Work?

    mediumReact Concurrent Features 5 mins
  79. 79. What Are Error Boundaries in React?

    mediumReact Error Handling 5 mins
  80. 80. What Are React Portals and When Do You Use Them?

    mediumReact 5 mins
  81. 81. What Are the Main State Management Patterns in Frontend Apps?

    mediumArchitecture 6 mins
  82. 82. SSR vs SSG vs ISR: What Is the Difference?

    mediumRendering Strategies 6 mins
  83. 83. What Is the Critical Rendering Path?

    mediumBrowser Performance 6 mins
  84. 84. What Are Core Web Vitals — LCP, FID/INP, and CLS?

    mediumWeb Performance 6 mins
  85. 85. What Are Code-Splitting Strategies and Why Do They Matter?

    mediumPerformance 5 mins
  86. 86. Preload vs Prefetch: What Is the Difference?

    mediumPerformance 5 mins
  87. 87. What Are Key Image Optimization Techniques for the Web?

    mediumPerformance 5 mins
  88. 88. Gzip vs Brotli: How Do These Compression Algorithms Compare?

    mediumPerformance 5 mins
  89. 89. What Was HTTP/2 Server Push, and Why Was It Deprecated?

    mediumNetworking 5 mins
  90. 90. What Are Resource Hints (preload, prefetch, preconnect)?

    mediumPerformance 5 mins
  91. 91. What Is the Difference Between defer and async Scripts?

    easyPerformance 4 mins
  92. 92. What Is List Virtualization and Why Use It?

    mediumFrontend Performance 5 mins
  93. 93. What Is Clickjacking and How Do You Prevent It?

    mediumWeb Security 5 mins
  94. 94. What Is SQL Injection and How Do You Prevent It?

    mediumWeb Security 5 mins
  95. 95. What Are the Secure and HttpOnly Cookie Attributes?

    mediumWeb Security 5 mins
  96. 96. What Is the SameSite Cookie Attribute and How Does It Prevent CSRF?

    mediumWeb Security 5 mins
  97. 97. What Is Subresource Integrity (SRI)?

    mediumWeb Security 5 mins
  98. 98. What Are JWT Security Best Practices?

    hardAuthentication 6 mins
  99. 99. What Is a Session Fixation Attack and How Do You Prevent It?

    hardWeb Security 6 mins
  100. 100. What Is HTTPS and What Causes Mixed Content Errors?

    mediumSecurity 5 mins
  101. 101. How Do You Design a Good GraphQL Schema?

    hardAPIs 6 mins
  102. 102. WebSockets vs Server-Sent Events: When to Use Each?

    mediumReal-Time Communication 5 mins
  103. 103. What Are Webhooks and How Do They Work?

    easyAPIs 4 mins
  104. 104. What Are Common API Rate Limiting Strategies?

    mediumAPI Design 5 mins
  105. 105. What Is Idempotency in REST APIs?

    mediumAPIs 5 mins
  106. 106. HTTP Methods: Safe vs. Idempotent, What Is the Difference?

    mediumAPIs 5 mins
  107. 107. What Do the HTTP Status Code Families Mean?

    easyAPIs 5 mins
  108. 108. What Are the Main API Pagination Strategies?

    mediumAPIs 6 mins
  109. 109. What Are the Main API Authentication Methods?

    mediumAuthentication 6 mins
  110. 110. What Is Refresh Token Rotation?

    hardAuthentication 6 mins
  111. 111. What Are CORS Preflight Requests?

    mediumBrowser Security 5 mins
  112. 112. What Does Babel Do When Transpiling JavaScript?

    mediumBuild Tools 5 mins
  113. 113. ES Modules vs. Bundlers: How Do They Relate?

    mediumBuild Tools 5 mins
  114. 114. What Are Source Maps and Why Do They Matter?

    easyBuild Tools 4 mins
  115. 115. What Is ESLint and Why Does Linting Matter?

    easyTooling 5 mins
  116. 116. DOM vs Shadow DOM: What Is the Difference?

    mediumBrowser Internals 5 mins
  117. 117. What Are Web Components?

    mediumFrontend Frameworks 5 mins
  118. 118. What Are Service Worker Caching Strategies?

    hardPerformance 6 mins
  119. 119. What Is a Progressive Web App (PWA)?

    mediumPerformance 5 mins
  120. 120. IndexedDB vs localStorage vs Cookies: When Do You Use Each?

    mediumBrowser Storage 5 mins
  121. 121. What Are the Size Limits of Web Storage Mechanisms?

    easyBrowser Storage 4 mins
  122. 122. What Are ARIA Attributes and When Should You Use Them?

    mediumAccessibility 5 mins
  123. 123. Why Does Semantic HTML Matter?

    easyAccessibility 4 mins
  124. 124. How Do You Build Keyboard-Accessible Web Interfaces?

    mediumAccessibility 5 mins
  125. 125. Repaint vs Reflow: How Do They Affect Rendering Performance?

    mediumRendering Performance 5 mins
  126. 126. What Is requestAnimationFrame and When Should You Use It?

    mediumRendering Performance 5 mins
  127. 127. What Is the Intersection Observer API and Why Use It?

    mediumBrowser APIs 5 mins
  128. 128. What Is the Mutation Observer API and When Should You Use It?

    mediumBrowser APIs 5 mins
  129. 129. What Is the Resize Observer API and Why Is It Useful?

    mediumBrowser APIs 5 mins
  130. 130. map, filter, and reduce: How Do They Differ?

    easyJavaScript Arrays 5 mins
  131. 131. What Does Array Sort Stability Mean?

    mediumJavaScript Arrays 5 mins
  132. 132. How Does the Event Loop Order Microtasks and Macrotasks?

    hardJavaScript Runtime 6 mins
  133. 133. Promise.all vs Promise.allSettled: When to Use Each?

    mediumJavaScript Promises 5 mins
  134. 134. Promise.race vs Promise.any: What Sets Them Apart?

    mediumJavaScript Promises 5 mins
  135. 135. What Are Async Generators in JavaScript?

    hardJavaScript Language 6 mins
  136. 136. How Do Modern Module Bundlers Like Vite, esbuild, and Webpack Compare?

    mediumBuild Tools 6 mins
  137. 137. How Does CSS Grid grid-template-areas Work?

    mediumCSS Layout 5 mins
  138. 138. What Do justify-content, align-items, and align-self Do in Flexbox?

    easyCSS Layout 4 mins
  139. 139. What Are CSS Container Queries and How Do They Differ from Media Queries?

    mediumCSS Layout 5 mins
  140. 140. What Are CSS Cascade Layers (@layer) and Why Do They Matter?

    mediumCSS Architecture 5 mins
  141. 141. How Does Native CSS Nesting Syntax Work?

    easyCSS Architecture 4 mins
  142. 142. What Are CSS Viewport Units (vh, vw, dvh, svh, lvh)?

    mediumCSS Layout 5 mins
  143. 143. How Do You Implement Dark Mode in a Web App?

    mediumCSS & Theming 6 mins
  144. 144. How Do CSS Custom Media Queries (@custom-media) Work?

    mediumCSS Architecture 5 mins
  145. 145. What Are React Server Components?

    hardReact Architecture 6 mins
  146. 146. What Are the Basics of the Next.js App Router?

    mediumReact Architecture 5 mins
  147. 147. What Is React Concurrent Rendering?

    hardReact Internals 6 mins
  148. 148. How Does React Strict Mode Change Component Behavior?

    mediumReact Internals 5 mins
  149. 149. What Is forwardRef in React and When Do You Need It?

    mediumReact APIs 5 mins
  150. 150. How Do React.lazy and Suspense Enable Code Splitting?

    mediumFrontend Performance 5 mins
  151. 151. How Do You Design a Good Custom React Hook?

    mediumReact Patterns 5 mins
  152. 152. What Are Higher-Order Components (HOCs) in React?

    mediumReact Patterns 5 mins
  153. 153. What Is the Render Props Pattern in React?

    mediumReact Patterns 5 mins
  154. 154. What Is the Compound Components Pattern in React?

    mediumReact Patterns 5 mins
  155. 155. What Are State Machines and Why Use Them in Frontend Code?

    mediumApplication Architecture 5 mins
  156. 156. What Are Optimistic UI Updates and How Do You Implement Them?

    mediumFrontend Patterns 5 mins
  157. 157. How Do You Implement a Debounced Search Input?

    easyPerformance 4 mins
  158. 158. How Do You Implement Infinite Scroll?

    mediumFrontend Patterns 5 mins
  159. 159. What Are Skeleton Loading Screens and Why Use Them?

    easyUser Experience 4 mins
  160. 160. How Do You Test a Web App for Accessibility?

    mediumAccessibility 5 mins
  161. 161. How Do You Manage Focus in a Single-Page Application?

    mediumAccessibility 5 mins
  162. 162. What Are ARIA Live Regions and When Do You Use Them?

    mediumAccessibility 5 mins
  163. 163. What Color Contrast Ratios Does WCAG Require and Why?

    easyAccessibility 4 mins
  164. 164. How Do You Make Custom Components Screen-Reader Compatible?

    hardAccessibility 6 mins
  165. 165. What Is the Browser Rendering Pipeline?

    mediumBrowser Internals 5 mins
  166. 166. What Is Layout Thrashing and How Do You Avoid It?

    hardPerformance 6 mins
  167. 167. What Are Passive Event Listeners and Why Do They Matter?

    mediumBrowser Events 5 mins
  168. 168. When Should You Use requestIdleCallback?

    mediumBrowser APIs 5 mins
  169. 169. What Are Web Workers and When Should You Use Them?

    mediumConcurrency 5 mins
  170. 170. Shared Workers vs Web Workers: What Is the Difference?

    mediumBrowser APIs 5 mins
  171. 171. What Is Offline-First Architecture?

    mediumProgressive Web Apps 6 mins
  172. 172. What Is the Background Sync API?

    mediumProgressive Web Apps 5 mins
  173. 173. How Do Web Push Notifications Work?

    mediumProgressive Web Apps 6 mins
  174. 174. What Is the Cache API and How Does It Differ From HTTP Caching?

    mediumProgressive Web Apps 6 mins
  175. 175. HTTP/1.1 vs HTTP/2: What Changed?

    mediumNetworking 5 mins
  176. 176. What Is HTTP/3 and How Does QUIC Change Things?

    hardNetworking 6 mins
  177. 177. What Is DNS Prefetching and When Should You Use It?

    easyPerformance 4 mins
  178. 178. What Happens During a TLS Handshake?

    mediumSecurity 5 mins
  179. 179. What CDN Caching Strategies Should You Know?

    mediumPerformance 6 mins
  180. 180. Monorepo vs Polyrepo for Frontend Projects: How Do You Choose?

    mediumArchitecture 5 mins
  181. 181. What Is Micro-Frontend Architecture?

    hardArchitecture 6 mins
  182. 182. What Is Webpack Module Federation and How Does It Work?

    hardBuild Tools 6 mins
  183. 183. How Do Feature Flags Work in Frontend Development?

    mediumDelivery Practices 5 mins
  184. 184. How Does A/B Testing Work on the Frontend?

    mediumDelivery Practices 6 mins
  185. 185. What Are Form Validation Strategies on the Web?

    mediumForms & Input 5 mins
  186. 186. Controlled Forms in React: Performance Tradeoffs?

    mediumForms & Input 5 mins
  187. 187. How Do You Handle File Uploads on the Web?

    mediumForms & Input 5 mins
  188. 188. How Does the HTML5 Drag and Drop API Work?

    mediumBrowser APIs 5 mins
  189. 189. How Does the Web Clipboard API Work?

    mediumBrowser APIs 5 mins
  190. 190. How Does the Geolocation API Work in the Browser?

    easyBrowser APIs 5 mins
  191. 191. What Is the Web Animations API and How Does It Compare to CSS Animations?

    mediumBrowser APIs 5 mins
  192. 192. Canvas vs SVG: When Should You Use Each for Web Graphics?

    mediumGraphics & Rendering 5 mins
  193. 193. What Is WebGL and How Does It Render Graphics in the Browser?

    hardGraphics & Rendering 6 mins
  194. 194. What Is the Web Audio API and How Does the Audio Graph Work?

    mediumBrowser APIs 6 mins
  195. 195. How Does Browser Storage Quota Management Work?

    mediumBrowser APIs 5 mins
  196. 196. How Do You Manage Third-Party Script Performance?

    mediumPerformance 5 mins
  197. 197. How Do Lighthouse Audits Work and What Do They Measure?

    mediumPerformance 5 mins
  198. 198. How Do You Use Bundle Analysis Tools to Optimize JavaScript?

    mediumBuild Tools 5 mins
  199. 199. What Is Dead Code Elimination and How Does It Work?

    mediumBuild Tools 5 mins
  200. 200. What Is CSS Specificity and How Do You Resolve Conflicts?

    mediumCSS Fundamentals 5 mins
  201. 201. What Is the Atomic CSS Approach?

    mediumCSS Architecture 5 mins
  202. 202. What Is Utility-First CSS and How Does It Differ From Semantic CSS?

    mediumCSS Architecture 5 mins
  203. 203. What Are CSS Modules and How Do They Solve Global Scope Problems?

    mediumCSS Architecture 5 mins
  204. 204. What Are the Tradeoffs of Using Styled-Components (CSS-in-JS)?

    hardCSS Architecture 6 mins
  205. 205. TypeScript vs JavaScript: What Is the Difference?

    easyTypeScript Fundamentals 5 mins
  206. 206. What Is Type Narrowing in TypeScript?

    mediumTypeScript Fundamentals 5 mins
  207. 207. What Are Generics in TypeScript and Why Use Them?

    mediumTypeScript Fundamentals 5 mins
  208. 208. What Are TypeScript Utility Types Like Partial and Pick?

    mediumTypeScript Fundamentals 5 mins
  209. 209. What Are Discriminated Unions in TypeScript?

    hardTypeScript Fundamentals 6 mins
  210. 210. Monolithic vs Microservice: How Does the Frontend Integrate?

    mediumArchitecture 5 mins
  211. 211. What Is the Backend-for-Frontend (BFF) Pattern?

    mediumArchitecture 5 mins
  212. 212. What Is the API Gateway Pattern?

    mediumArchitecture 5 mins
  213. 213. How Does Caching Differ Between GraphQL and REST?

    hardAPIs 6 mins
  214. 214. What Is the GraphQL N+1 Problem and How Do You Solve It?

    hardAPIs 6 mins
  215. 215. What Are HTTP Security Headers and Why Do They Matter?

    mediumWeb Security 5 mins
  216. 216. How Do CSP Nonces Prevent Inline Script Injection?

    hardWeb Security 6 mins
  217. 217. What Does the Referrer-Policy Header Control?

    mediumWeb Security 5 mins
  218. 218. What Is the Permissions-Policy Header Used For?

    mediumWeb Security 5 mins
  219. 219. What Is the Trusted Types API and How Does It Prevent DOM XSS?

    hardWeb Security 6 mins
  220. 220. What Is a Web Performance Budget?

    mediumPerformance 5 mins
  221. 221. What Is the Time to Interactive (TTI) Metric?

    mediumPerformance 5 mins
  222. 222. What Is First Contentful Paint (FCP)?

    easyPerformance 4 mins
  223. 223. What Is Total Blocking Time (TBT)?

    mediumPerformance 5 mins
  224. 224. What Is the Speed Index Metric?

    mediumPerformance 5 mins