Easy Frontend Developer questions
202 questions · 5 points each for a correct first answer.
- 1.Semantic element for site navigationsemantic-html, accessibilityeasy
- 2.Width with border-boxcss, box-modeleasy
- 3.Block scope of letjavascript, scopeeasy
- 4.Loose vs strict equalityjavascript, type-coercioneasy
- 5.Centering with Flexboxcss, flexboxeasy
- 6.Why React lists need keysreact, reconciliationeasy
- 7.Alt text for a decorative imageaccessibility, semantic-htmleasy
- 8.Sync code runs before promise callbacksjavascript, event-loopeasy
- 9.Linking a label to an inputhtml-forms, accessibilityeasy
- 10.Default type of a form buttonhtml-formseasy
- 11.What 1rem is relative tocss, css-unitseasy
- 12.Where absolute elements are placedcss, css-positioningeasy
- 13.Hiding an element but keeping its spacecsseasy
- 14.typeof null and arraysjavascript, typeseasy
- 15.Changing a property of a const objectjavascripteasy
- 16.Grid columns with fr unitscss-grideasy
- 17.Media query for mobile-first CSSresponsive-design, csseasy
- 18.Page looks zoomed out on phonesresponsive-design, htmleasy
- 19.Numbers saved in localStoragebrowser-storage, javascripteasy
- 20.What fetch does on a 404fetch-api, javascripteasy
- 21.Input that ignores typingreact, react-formseasy
- 22.Changing a prop inside a childreact, react-stateeasy
- 23.Inspecting an API responsedevtools, debuggingeasy
- 24.Installing a test-only packagenpm, toolingeasy
- 25.Tailwind md: prefixtailwind-css, responsive-designeasy
- 26.TypeScript types at runtimetypescripteasy
- 27.Optional chaining on missing datajavascripteasy
- 28.?? versus || with zerojavascripteasy
- 29.Choosing a heading levelsemantic-html, accessibilityeasy
- 30.Minimum text contrast for WCAG AAaccessibilityeasy
- 31.Native lazy loading for imagesweb-performance, htmleasy
- 32.What defer does on a scriptweb-performance, htmleasy
- 33.Order of click handlersdom-events, javascripteasy
- 34.Sorting numbers without a comparatorjavascript, arrayseasy
- 35.What the main element is forhtml-css, semantic-htmleasy
- 36.article versus sectionhtml-css, semantic-htmleasy
- 37.Link or buttonhtml-css, semantic-html, accessibilityeasy
- 38.What type="email" gives youhtml-css, formseasy
- 39.Why <!DOCTYPE html> mattershtml-css, html-basicseasy
- 40.The lang attributehtml-css, accessibility, html-basicseasy
- 41.Width on a spanhtml-css, css-displayeasy
- 42.Caption for a chart imagehtml-css, semantic-htmleasy
- 43.Header cells in a data tablehtml-css, accessibility, tableseasy
- 44.Two elements with the same idhtml-css, html-basicseasy
- 45.Reading a data attributehtml-css, domeasy
- 46.Links that open a new tabhtml-css, security, html-basicseasy
- 47.Value of a number inputhtml-css, forms, domeasy
- 48.A FAQ that opens and closeshtml-css, semantic-html, accessibilityeasy
- 49.Marking up a datehtml-css, semantic-htmleasy
- 50.Gap between two stacked paragraphshtml-css, box-modeleasy
- 51.Total width with content-boxhtml-css, box-modeleasy
- 52.Sizing chips that sit in a linehtml-css, css-displayeasy
- 53.Axes in a column flexboxhtml-css, flexboxeasy
- 54.Spacing between flex itemshtml-css, flexboxeasy
- 55.Flex items squeezed on one linehtml-css, flexboxeasy
- 56.Properties that inherithtml-css, cascadeeasy
- 57.Nested em font sizeshtml-css, css-unitseasy
- 58.A ::before that does not showhtml-css, selectorseasy
- 59.A floating WhatsApp buttonhtml-css, positioningeasy
- 60.Square thumbnails from mixed photoshtml-css, imageseasy
- 61.Images that overflow on phoneshtml-css, responsive-design, imageseasy
- 62.Striping table rowshtml-css, selectorseasy
- 63.Choosing a line-height valuehtml-css, typographyeasy
- 64.first-child versus first-of-typehtml-css, selectorseasy
- 65.Following the system dark modehtml-css, responsive-design, themingeasy
- 66.Users who get dizzy from motionhtml-css, accessibility, animationseasy
- 67.A hover transitionhtml-css, animationseasy
- 68.A loading spinner that never stopshtml-css, animationseasy
- 69.Invisible text while fonts loadhtml-css, fonts, performanceeasy
- 70.Keeping a video box 16:9html-css, responsive-designeasy
- 71.Hover effects on touch screenshtml-css, responsive-designeasy
- 72.Smaller image fileshtml-css, images, performanceeasy
- 73.Nesting rules without Sasshtml-css, css-architectureeasy
- 74.Printing an invoice pagehtml-css, responsive-designeasy
- 75.A heading with one word on the last linehtml-css, typographyeasy
- 76.Why 0.1 + 0.2 is not 0.3javascript, numberseasy
- 77.Checking for NaNjavascript, numberseasy
- 78.Plus and minus with a stringjavascript, type-coercioneasy
- 79.Is an empty array truthyjavascript, type-coercioneasy
- 80.When a default parameter appliesjavascript, functionseasy
- 81.Swapping with destructuringjavascript, destructuringeasy
- 82.Rename and default in destructuringjavascript, destructuringeasy
- 83.Rest parameters versus argumentsjavascript, functionseasy
- 84.Array.from with a lengthjavascript, arrayseasy
- 85.Typo in a variable namejavascript, strict-modeeasy
- 86.What JSON.stringify leaves outjavascript, jsoneasy
- 87.replace changes only one matchjavascript, stringseasy
- 88.Changing one letter of a stringjavascript, stringseasy
- 89.typeof of a functionjavascript, typeseasy
- 90.What && and || returnjavascript, operatorseasy
- 91.Resolving a promise twicejavascript, promiseseasy
- 92.What .then returnsjavascript, promiseseasy
- 93.Results of Promise.allSettledjavascript, promiseseasy
- 94.race versus anyjavascript, promiseseasy
- 95.Awaiting a non-promisejavascript, async-awaiteasy
- 96.Stopping a polling timerjavascript, timerseasy
- 97.Default and named importsjavascript, moduleseasy
- 98.Parsing a broken JSON stringjavascript, json, errorseasy
- 99.Cancelling a fetchjavascript, fetcheasy
- 100.A long loop on the main threadjavascript, event-loopeasy
- 101.Hiding a spinner with finallyjavascript, promiseseasy
- 102.A rejection nobody handlesjavascript, promises, errorseasy
- 103.Forgetting to await response.jsonjavascript, fetch, async-awaiteasy
- 104.Where to run a heavy calculationjavascript, web-workerseasy
- 105.Behaviour of script type modulejavascript, moduleseasy
- 106.Type inferred from a letjavascript, typescripteasy
- 107.Narrowing a union with typeofjavascript, typescript, narrowingeasy
- 108.Declaring the same interface twicejavascript, typescript, interfaceseasy
- 109.Type of an optional parameterjavascript, typescript, functionseasy
- 110.Pushing to a readonly arrayjavascript, typescripteasy
- 111.Type of a const stringjavascript, typescript, literal-typeseasy
- 112.What as const does to an arrayjavascript, typescript, literal-typeseasy
- 113.A tuple typejavascript, typescripteasy
- 114.Result type of findjavascript, typescript, strict-modeeasy
- 115.A function that returns nothingjavascript, typescript, functionseasy
- 116.Limiting a prop to fixed valuesjavascript, typescript, literal-typeseasy
- 117.What JSX turns intoreact, jsxeasy
- 118.A component written in lowercasereact, jsx, componentseasy
- 119.Adding a CSS class in JSXreact, jsxeasy
- 120.Returning two elementsreact, jsxeasy
- 121.A stray 0 on the pagereact, conditional-renderingeasy
- 122.Handler that runs on every renderreact, eventseasy
- 123.Content between component tagsreact, components, propseasy
- 124.Logging state right after setting itreact, stateeasy
- 125.Two siblings that share a valuereact, stateeasy
- 126.Changing the initial state propreact, state, hookseasy
- 127.Rendering a list of citiesreact, listseasy
- 128.A form that reloads the pagereact, events, formseasy
- 129.Inline styles in JSXreact, jsx, stylingeasy
- 130.Hiding a componentreact, conditional-renderingeasy
- 131.Logs that appear twicereact, strict-modeeasy
- 132.When useEffect runsreact, hooks, effectseasy
- 133.An effect with an empty arrayreact, hooks, effectseasy
- 134.When effect cleanup runsreact, hooks, effectseasy
- 135.Focusing an input on a button clickreact, hooks, refseasy
- 136.Reading the current languagereact, contexteasy
- 137.What useMemo is forreact, hooks, performanceeasy
- 138.What useCallback returnsreact, hooks, performanceeasy
- 139.Finding which component is slowreact, performance, toolseasy
- 140.Splitting off a heavy admin pagereact, performance, code-splittingeasy
- 141.Finding a button in a testreact, testingeasy
- 142.Asserting an error is gonereact, testingeasy
- 143.Starting a new React projectreact, toolseasy
- 144.Why use a data-fetching libraryreact, data-fetchingeasy
- 145.A secret key in import.meta.envreact, securityeasy
- 146.State hooks in a server-only filereact, server-componentseasy
- 147.Raw text in React Nativereact, react-nativeeasy
- 148.Showing 5,000 contacts in React Nativereact, react-native, performanceeasy
- 149.Choosing the selected optionreact, formseasy
- 150.A name containing a script tagreact, securityeasy
- 151.Starting a new React Native appreact, react-native, toolseasy
- 152.Linking a label in JSXreact, accessibility, jsxeasy
- 153.Showing rupees in Indian formatreact, internationalisationeasy
- 154.Good LCP targetweb-performance, core-web-vitalseasy
- 155.Good CLS scoreweb-performance, core-web-vitalseasy
- 156.Good INP targetweb-performance, core-web-vitalseasy
- 157.What TTFB measuresweb-performance, networkeasy
- 158.FCP versus LCPweb-performance, core-web-vitalseasy
- 159.Lab data versus field dataweb-performance, measurementeasy
- 160.Why CSS blocks renderingweb-performance, critical-rendering-patheasy
- 161.Images that push text downweb-performanceeasy
- 162.What preconnect doesweb-performance, resource-hintseasy
- 163.What a performance budget isweb-performance, budgetseasy
- 164.What a long task isweb-performance, main-threadeasy
- 165.Testing on a slow networkweb-performance, measurementeasy
- 166.What to compressweb-performance, compressioneasy
- 167.Metric INP replacedweb-performance, core-web-vitalseasy
- 168.Why the 75th percentileweb-performance, measurementeasy
- 169.no-cache versus no-storeweb-performance, cachingeasy
- 170.What a 304 response meansweb-performance, cachingeasy
- 171.Unit of max-ageweb-performance, cachingeasy
- 172.Modern image formatsweb-performance, imageseasy
- 173.What srcset is forweb-performance, imageseasy
- 174.Main benefit of a CDNweb-performance, cachingeasy
- 175.Best web font formatweb-performance, fontseasy
- 176.font-display: swapweb-performance, fontseasy
- 177.HTTP/2 multiplexingweb-performance, networkeasy
- 178.What a service worker doesweb-performance, service-workerseasy
- 179.Oversized product photoweb-performance, imageseasy
- 180.Brotli compared to gzipweb-performance, compressioneasy
- 181.What HTTP/3 changesweb-performance, networkeasy
- 182.Reading the Network waterfallweb-performance, devtoolseasy
- 183.What Vary doesweb-performance, cachingeasy
- 184.What ~2.4.1 allowsweb-performance, npmeasy
- 185.npm ci in pipelinesweb-performance, npmeasy
- 186.Committing the lockfileweb-performance, npmeasy
- 187.What minification doesweb-performance, bundlerseasy
- 188.What source maps are forweb-performance, bundlerseasy
- 189.Why the Vite dev server starts fastweb-performance, build-toolseasy
- 190.Loading code on demandweb-performance, bundlerseasy
- 191.What tree shaking isweb-performance, bundlerseasy
- 192.What npx doesweb-performance, npmeasy
- 193.What a peer dependency isweb-performance, npmeasy
- 194.Tool for finding leaksweb-performance, memoryeasy
- 195.When to use a web workerweb-performance, main-threadeasy
- 196.Timing visual updatesweb-performance, main-threadeasy
- 197.What browserslist controlsweb-performance, build-toolseasy
- 198.Detached DOM nodesweb-performance, memoryeasy
- 199.What Speed Index showsweb-performance, measurementeasy
- 200.Running Lighthouse in incognitoweb-performance, lighthouseeasy
- 201.Blurred image placeholderweb-performance, imageseasy
- 202.Catching slowdowns in PRsweb-performance, budgetseasy