Skip to content
RED SAG Skills

Hard Frontend Developer questions

199 questions · 20 points each for a correct first answer.

  1. 1.Cause of a hydration mismatchhard
  2. 2.Avoiding layout thrashinghard
  3. 3.Race condition in data fetchinghard
  4. 4.Why React.memo did not helphard
  5. 5.z-index that does not workhard
  6. 6.Preventing XSS from user HTMLhard
  7. 7.Reducing the initial bundlehard
  8. 8.Losing this when a method is extractedhard
  9. 9.Ellipsis that never truncates in Flexboxhard
  10. 10.Every context consumer re-rendershard
  11. 11.Effect that fetches foreverhard
  12. 12.Tooltip flashes in the wrong placehard
  13. 13.Janky slide-in animationhard
  14. 14.Order of logs around awaithard
  15. 15.Order of object keyshard
  16. 16.map with parseInthard
  17. 17.A CSP that stops injected scriptshard
  18. 18.CSRF risk left with SameSite=Laxhard
  19. 19.Unsafe postMessage listenerhard
  20. 20.Slow click handler hurts INPhard
  21. 21.Layout shift when the web font loadshard
  22. 22.Old version after deploy with a service workerhard
  23. 23.Typing lags while a big list filtershard
  24. 24.Optimistic like button done righthard
  25. 25.Memory grows in a single-page apphard
  26. 26.Importing one function pulls a whole libraryhard
  27. 27.Cascade layers versus specificityhard
  28. 28.Card layout based on its own widthhard
  29. 29.Exhaustive check with neverhard
  30. 30.When extra properties are an errorhard
  31. 31.Status message screen readers misshard
  32. 32.Comparator that returns a booleanhard
  33. 33.aria-hidden on a parent of a buttonhard
  34. 34.Which label winshard
  35. 35.Focus after client-side navigationhard
  36. 36.Locking the page behind a drawerhard
  37. 37.Global CSS and a shadow roothard
  38. 38.Naming a custom elementhard
  39. 39.What is inside a template taghard
  40. 40.onclick stops working after adding CSPhard
  41. 41.Detecting the end of a listhard
  42. 42.A field that stays invalidhard
  43. 43.Minimum contrast for body texthard
  44. 44.Minimum size of a tap targethard
  45. 45.Reordering with CSS orderhard
  46. 46.Relying on accept for uploadshard
  47. 47.When a MutationObserver fireshard
  48. 48.Child margin pushes the parent downhard
  49. 49.A parent that ignores floated childrenhard
  50. 50.What padding-top: 50% is based onhard
  51. 51.A grid column that will not shrinkhard
  52. 52.auto-fill versus auto-fit with few itemshard
  53. 53.A fixed modal that scrolls awayhard
  54. 54.height: 100% that does nothinghard
  55. 55.Specificity of :not() with a listhard
  56. 56.Aligning titles across cardshard
  57. 57.What dense packing doeshard
  58. 58.Widths after flex-shrinkhard
  59. 59.Animating a gradient anglehard
  60. 60.z-index on a non-positioned blockhard
  61. 61.Centring an absolute box with auto marginshard
  62. 62.Order of values in gaphard
  63. 63.Full-height hero cut off on phoneshard
  64. 64.A view transition that is skippedhard
  65. 65.A very long page that renders slowlyhard
  66. 66.Arabic and English user commentshard
  67. 67.A hover shadow that drops frameshard
  68. 68.Percentages in left versus translatehard
  69. 69.Buttons vanish in high contrast modehard
  70. 70.Page jumps when a modal openshard
  71. 71.Scrolling leaks out of a modalhard
  72. 72.A bottom bar under the iPhone home indicatorhard
  73. 73.Loading five font weightshard
  74. 74.Closure holding a big arrayhard
  75. 75.Spreading an object with a getterhard
  76. 76.Symbol keys and JSONhard
  77. 77.Object.is and negative zerohard
  78. 78.Deep merge of user JSONhard
  79. 79.Sorting orders that tiehard
  80. 80.Using new on an arrow functionhard
  81. 81.Checking for a private fieldhard
  82. 82.Passing values into a generatorhard
  83. 83.Making an object spreadablehard
  84. 84.Arguments to a tagged templatehard
  85. 85.Proxy set trap that returns nothinghard
  86. 86.arguments inside an arrow functionhard
  87. 87.Adding a BigInt and a numberhard
  88. 88.Class getter and hasOwnPropertyhard
  89. 89.return versus return await in tryhard
  90. 90.A promise awaited too latehard
  91. 91.Breaking out of for awaithard
  92. 92.Progress bar that never moveshard
  93. 93.Sending a callback to a workerhard
  94. 94.ArrayBuffer after transferhard
  95. 95.Relying on FinalizationRegistryhard
  96. 96.setImmediate inside an I/O callbackhard
  97. 97.A debounce that never debounceshard
  98. 98.Time with a concurrency limithard
  99. 99.Throwing after resolvehard
  100. 100.Top-level await in a config modulehard
  101. 101.Promise.resolve of a promisehard
  102. 102.Breaking up a long taskhard
  103. 103.try/catch around forEach with asynchard
  104. 104.A conditional type over a unionhard
  105. 105.Extracting a type with inferhard
  106. 106.Removing optional and readonlyhard
  107. 107.Building handler names from keyshard
  108. 108.Method versus property function typeshard
  109. 109.Stopping mixed-up string IDshard
  110. 110.A const type parameterhard
  111. 111.Type of the catch variablehard
  112. 112.Typing a global on windowhard
  113. 113.What the {} type acceptshard
  114. 114.Batching inside a timeouthard
  115. 115.Scrolling to a just-added messagehard
  116. 116.Too many re-renders errorhard
  117. 117.Resetting selection when items changehard
  118. 118.Setting state to the same valuehard
  119. 119.Items added twice in developmenthard
  120. 120.A list item made of two elementshard
  121. 121.Old value after an awaithard
  122. 122.use() that suspends foreverhard
  123. 123.Errors an error boundary misseshard
  124. 124.Which fallback showshard
  125. 125.Clicks inside a portalhard
  126. 126.Passing a ref to a function componenthard
  127. 127.Cleanup from a ref callbackhard
  128. 128.useContext with no Provider abovehard
  129. 129.useEffect(async () => ...)hard
  130. 130.Two socket connections in developmenthard
  131. 131.Relying on useMemo for correctnesshard
  132. 132.Logging the latest theme from an effecthard
  133. 133.Streaming HTML with Suspensehard
  134. 134.Passing onSelect from a Server Componenthard
  135. 135.Putting a function in useStatehard
  136. 136.Analytics event sent many timeshard
  137. 137.Reading a mutable store during renderhard
  138. 138.A transition around typinghard
  139. 139.One user lookup per requesthard
  140. 140.Old content during a product changehard
  141. 141.A huge bundle from one helperhard
  142. 142.Mocking APIs in component testshard
  143. 143.Heavy work in useLayoutEffecthard
  144. 144.Jumping to row 3,000 in a FlatListhard
  145. 145.Animation stutters while data loadshard
  146. 146.A custom hook with a stale callbackhard
  147. 147.Loading and error both truehard
  148. 148.One slow field in a big formhard
  149. 149.A user-supplied website linkhard
  150. 150.Organising a growing React codebasehard
  151. 151.How CLS groups shiftshard
  152. 152.Shifts after a clickhard
  153. 153.Where LCP time goeshard
  154. 154.Download time of a bundlehard
  155. 155.Why the first 14 KB mattershard
  156. 156.Finding the script behind slow INPhard
  157. 157.Big DOM, slow painthard
  158. 158.High TTFB only in the Gulfhard
  159. 159.Marketing tags slow the pagehard
  160. 160.Font preloaded twicehard
  161. 161.HTTP 103 Early Hintshard
  162. 162.Loading non-critical CSShard
  163. 163.Good average, bad mobilehard
  164. 164.LCP in a single-page apphard
  165. 165.Explaining slow TTFBhard
  166. 166.No Cache-Control headerhard
  167. 167.User data cached at the CDNhard
  168. 168.Vary: User-Agent at the CDNhard
  169. 169.Choosing an image CDN setuphard
  170. 170.Preloading all fontshard
  171. 171.Matching the fallback fonthard
  172. 172.Service worker slows navigationshard
  173. 173.Large cookies on every requesthard
  174. 174.Version in a query stringhard
  175. 175.Using HTTP/2 Server Pushhard
  176. 176.Picking the srcset candidatehard
  177. 177.Invisible text on 3Ghard
  178. 178.Origin outage resiliencehard
  179. 179.Cache storage filling uphard
  180. 180.Many edges hitting the originhard
  181. 181.Same bytes, different costhard
  182. 182.Slow builds from index fileshard
  183. 183.What scope hoisting giveshard
  184. 184.Over-splitting a bundlehard
  185. 185.Deep import breaks after upgradehard
  186. 186.Two instances of one packagehard
  187. 187.Estimating a leakhard
  188. 188.Leak from a global listenerhard
  189. 189.Sending a big buffer to a workerhard
  190. 190.Page views jump after prerenderinghard
  191. 191.Build fails after moving to pnpmhard
  192. 192.One vendor chunk for everythinghard
  193. 193.Native import mapshard
  194. 194.Risky install scriptshard
  195. 195.Rendering a 10,000-row tablehard
  196. 196.High input delay at loadhard
  197. 197.Cost of a font swap shifthard
  198. 198.Lab looks fine, users complainhard
  199. 199.Moving tags off the main threadhard