Machine coding interview questions
Build real UIs against a requirements checklist with a live preview: React widgets, forms, async data, state architecture and algorithmic UIs, plus vanilla JS projects. Each has a reference solution. 68 free questions in 8 topics, each with its answer and an explanation once you have tried it.
0 of 68 solved
Topics
- UI widgets (React) · Machine coding (12)
- Forms (React) · Machine coding (5)
- Data fetching & async (React) · Coding drills (1), Machine coding (7)
- State architecture (React) · Machine coding (6)
- Algorithmic UIs (React) · Machine coding (5)
- Vanilla JS projects · Machine coding (12)
- Machine-coding follow-up questions · Quizzes (12), Flashcards (3)
- DOM geometry & images · Quizzes (2), Flashcards (2), Put in order (1)
UI widgets (React)
0 / 12- Not attemptedSelect-all checkboxes with indeterminate stateDifficulty: easy
- Not attemptedImage carousel with autoplayDifficulty: medium
- Not attemptedGlowing grid cellsDifficulty: easy
- Not attemptedModal with a portalDifficulty: medium
- Not attemptedOverlapping circlesDifficulty: hard
- Not attemptedProgress bars: four scheduling modesDifficulty: medium
- Not attemptedTabs with keyboard supportDifficulty: easy
- Not attemptedTic-tac-toeDifficulty: medium
- Not attemptedStopwatch with lapsDifficulty: medium
- Not attemptedTypewriter effect with controlsDifficulty: medium
- Not attemptedTraffic light (state machine)Difficulty: easy
- Not attemptedWhack-a-moleDifficulty: medium
Forms (React)
0 / 5Data fetching & async (React)
0 / 8- Not attemptedDebounced autocompleteDifficulty: hard
- Not attemptedFetch a user list safelyDifficulty: easy
- Not attemptedHacker News readerDifficulty: medium
- Not attemptedInfinite scrollDifficulty: medium
- Not attempteduseFetchWithRetry hookDifficulty: medium
- Not attemptedOffline image cache (IndexedDB)Difficulty: hard
- Not attemptedSortable, filterable data table with infinite scrollDifficulty: hard
- Not attemptedSort table rows by column (sortRows)Difficulty: medium
State architecture (React)
0 / 6- Not attemptedFeature flags with contextDifficulty: medium
- Not attemptedMost frequent wordsDifficulty: medium
- Not attemptedGroup values by typeDifficulty: easy
- Not attemptedMulti-step checkoutDifficulty: medium
- Not attemptedTodo with useReducer (vs useState)Difficulty: medium
- Not attemptedTransfer listDifficulty: medium
Algorithmic UIs (React)
0 / 5Vanilla JS projects
0 / 12- Not attemptedBall mover (DOM coordinates)Difficulty: easy
- Not attemptedCarousel (vanilla JS)Difficulty: medium
- Not attemptedChess board with diagonal highlightDifficulty: medium
- Not attemptedMulti-open accordionDifficulty: easy
- Not attemptedCSS position playgroundDifficulty: easy
- Not attemptedProgress bar queue (vanilla JS)Difficulty: easy
- Not attemptedTheme switcher (light / dark / system)Difficulty: medium
- Not attemptedTic-tac-toe (vanilla JS)Difficulty: medium
- Not attemptedForm with live validation (vanilla JS)Difficulty: easy
- Not attemptedPhone directoryDifficulty: medium
- Not attemptedStar Wars API tableDifficulty: easy
- Not attemptedStar Wars table with a cacheDifficulty: medium
Machine-coding follow-up questions
0 / 15- Not attemptedFollow-ups interviewers ask after you build it
- Not attemptedInfinite scroll checklistDifficulty: medium
- Not attemptedSortable table: comparator and markupDifficulty: medium
- Not attemptedSpot the bug: uuid keys in renderDifficulty: easy
- Not attemptedSpot the bug: stale closures in the observerDifficulty: hard
- Not attemptedSpot the bug: clearTimeout on a fresh localDifficulty: easy
- Not attemptedSpot the bug: comparing pages to itemsDifficulty: medium
- Not attemptedSpot the bug: scroll listener plus IntersectionObserverDifficulty: medium
- Not attemptedSpot the bug: sorting only the loaded rowsDifficulty: medium
- Not attemptedSpot the bug: fast filter changesDifficulty: medium
- Not attemptedSpot the bug: error handling for two fetchesDifficulty: medium
- Not attemptedSpot the bug: option shape mismatchDifficulty: hard
- Not attemptedSpot the bug: types that hide bugsDifficulty: medium
- Not attemptedSpot the bug: a clickable table headerDifficulty: easy
- Not attemptedSpot the bug: derived state synced by an effectDifficulty: medium
Machine coding interview questions: FAQ
- How many Machine coding interview questions are there?
- 68 questions in 8 topics: Quizzes (14), Coding drills (1), Machine coding (47), Flashcards (5), Put in order (1). All of them are free and need no login.
- What do the Machine coding questions cover?
- UI widgets (React), Forms (React), Data fetching & async (React), State architecture (React), Algorithmic UIs (React), Vanilla JS projects, Machine-coding follow-up questions and DOM geometry & images.
- How should I practise Machine coding for a frontend interview?
- Go topic by topic and answer each question before you open its answer and explanation. Progress stays in your browser, so Review brings back the questions you missed, and a mock round mixes questions under a timer.