Skip to main content
FREE Mock interview & resume review with Sumit. Free right now, no payment needed.Book a slot

Machine coding round

JavaScript machine coding.No framework. No excuses.

Polyfills, event systems, debounce, deep clone and DOM problems asked in frontend rounds. Write it in vanilla JavaScript, run it, then compare with a clean solution.

105challenges
29basic
55intermediate
21advanced
Showing 1–12 of 105
Basic⏱ 20 mins

Todo List App

Build a todo list application using vanilla JavaScript. Include add, delete, edit, and mark complete functionality with localStorage persistence.

#JavaScript#DOM#Local Storage+1
Round 01Start round →
Basic⏱ 9 mins

Holy Grail Layout

Create a responsive holy grail layout (header, footer, sidebar, main content) using CSS Grid or Flexbox.

#JavaScript#CSS#Layout+1
Round 02Start round →
Basic⏱ 16 mins

Tabs

Build a tabs component using vanilla JavaScript with smooth transitions and keyboard navigation.

#JavaScript#DOM#Tabs+1
Round 03Start round →
Basic⏱ 12 mins

Accordion

Create an accordion component that expands and collapses sections. Support single or multiple open items.

#JavaScript#DOM#Accordion+1
Round 04Start round →
Intermediate⏱ 18 mins

Pagination - Vanilla JS

Build a pagination component with page numbers, previous/next buttons, and ellipsis for large page counts.

#JavaScript#DOM#Pagination+1
Round 05Start round →
Basic⏱ 15 mins

Debounce Function

Implement a debounce function that delays function execution until after a specified time has passed.

#JavaScript#Functions#Performance+1
Round 06Start round →
Basic⏱ 15 mins

Throttle Function

Create a throttle function that limits function execution to at most once per specified time period.

#JavaScript#Functions#Performance+1
Round 07Start round →
Intermediate⏱ 20 mins

Deep Clone Function

Implement a deep clone function that creates a complete copy of nested objects and arrays.

#JavaScript#Objects#Arrays+1
Round 08Start round →
Intermediate⏱ 25 mins

Event Emitter

Build an EventEmitter class that supports subscribing to events, emitting events, and unsubscribing.

#JavaScript#Events#Classes+1
Round 09Start round →
Advanced⏱ 45 mins

Promise Implementation

Implement a Promise class from scratch with then, catch, and finally methods.

#JavaScript#Promises#Async+1
Round 10Start round →
Intermediate⏱ 30 mins

Array Methods Polyfill

Implement polyfills for map, filter, reduce, forEach, and find array methods.

#JavaScript#Arrays#Polyfills+1
Round 11Start round →
Intermediate⏱ 20 mins

Bind Function Implementation

Implement Function.prototype.bind() from scratch with support for partial application.

#JavaScript#Functions#this+1
Round 12Start round →