machine coding#11

questions from frontend machine coding rounds — the approach, the solution, and what usually goes wrong.

react ui components 8javascript fundamentals 3source

react ui components#8

  • 01

    Star rating

    easy · state, events, render-props

  • 02

    Stopwatch

    easy · useEffect, timers, cleanup

  • 03

    Toggle switch

    easy · controlled-components, css, accessibility

  • 04

    Pagination

    medium · render-props, useMemo, component-api

  • 05

    Infinite scroll

    medium · IntersectionObserver, refs, useEffect

  • 06

    File explorer tree

    medium · recursion, nested-state, immutability

  • 07

    Popover

    medium · context, compound-components, refs

  • 08

    Memory game

    medium · state-machine, timers, derived-state

javascript fundamentals#3

  • 01

    Debounce

    easy · closures, timers, higher-order-functions

  • 02

    Throttle

    easy · closures, timers, higher-order-functions

  • 03

    Polyfill call and apply

    medium · this, prototypes, polyfills

sourav khan
githublinkedinrésuméemailrss
© 2026 sourav khan