Skip to content

Most comprehensive collection of frequently asked frontend interview questions, containing machine coding problems and answers, logical questions, algorithms, and questions on other core JS concepts

Notifications You must be signed in to change notification settings

Govind783/comprehensive-frontend-interview-resources

Repository files navigation

📁 Sections in This Repo

  • Machine Coding
    Extensive machine coding questions and solutions
    src/pages/machine-coding

  • Polyfills
    Most commonly asked polyfills for JavaScript — arrays, promises, objects, and hooks
    src/pollyfills

  • React Hooks
    Commonly asked custom hooks
    src/hooks

  • Core JavaScript Concepts
    For example, writing a custom function to check if two objects are equal, or to deep clone an object
    src/problem-solving/general-problem-solving/objects

  • General Problem Solving
    Covers problems on arrays, strings, two pointers, sliding window, and more
    src/problem-solving/general-problem-solving/generic-problem-solving.js


🤓 Types of Questions Covered in Machine Coding

  • Recursive nested checkboxes or Reddit-style nested comment systems
  • Autocomplete features (triggered by API or specific characters)
  • File uploads with mouse drag/drop events
  • Games like Tic Tac Toe and Memory Game
  • Infinite scrolling (basic but interview-tested — appreciated for demonstrating core logic clearly)
  • Time-based components
  • Carousels
  • OTP
  • ...and many more

If you find this helpful, star the repo 🌟 and let's connect on Twitter!

🧩 Images of What We've Built Under Machine Coding (and Many More)

Nested checkbox where cheecking parent, should check the children as well, and vice versa image


Reciepe auto complete with caching and debouncing image


Selectable grid, with mouse events in place image


auto compplete on specific characters and bank names, trigger auto complete after "@" image

auto complete with tab support where we show a suggestion first (grayed out) and on click of tab complete it image

Infinite scrolling

image


LRU caching image

VS-code like file tree with CRUD image