What are you practising today?
- QuestionsSearch, filter and solve, with tests in the browser.1,534questions
- ExploreLearn one topic at a time: a short lesson, then the questions that test it.18topics
- Must-solve 150The 150 to solve first, in an order that builds each skill.150questions
- TopicsOne interview round at a time, easy to hard.20tracks
- Mock interviewA timed round with follow-ups and a score, for any company.595companies
UIRound
Frontend interview questions.
Mastered.
A frontend interview practice site for developers preparing for SDE-1, senior and FAANG loops. Solve JavaScript, React, machine coding and system design questions in the browser, run real tests, then learn from step-by-step answers and the follow-ups that decide the offer.
Company guides for Google, Meta, Amazon and 592 moreFour free answers in every track. No account needed to browse.
Today's question
Build a transfer list with select-all and bulk movesmedium · about 40 min · free for everyone today, until midnight ISTSolve itmapLimit() with AbortSignal
Run async tasks with at most N in flight. Keep results in order, fail fast, and stop when the caller aborts.
- Results keep input order
- Never more than limit tasks
- Reject on the first failure
- Respect the AbortSignal
1async function mapLimit(items, limit, fn, { signal } = {}) {2 if (limit < 1) throw new RangeError("limit must be >= 1");3 const results = new Array(items.length);4 let next = 0;56 async function worker() {7 while (next < items.length) {8 signal?.throwIfAborted();9 const i = next++;10 results[i] = await fn(items[i], i);11 }12 }1314 const workers = Math.min(limit, items.length);15 await Promise.all(Array.from({ length: workers }, worker));16 return results;17}
- keeps input order
- never runs more than limit tasks
- rejects as soon as one task fails
- stops when the signal aborts
- handles an empty list
From engineers at Google, Walmart, DP World and more
Try one now.
Implement debounce() with cancel() and flush(). Write it below and press Submit: the tests run in your browser, no account needed.
Open the full question with hints, the answer and follow-ups
More than a question bank.
Questions with tests are the core. Around them: ways to rehearse the round, free courses that explain the hard parts, and editors you can open in a second.
Practice
Rehearse the round itself.
- Interview plannerNewYour company and date in, a day-by-day plan out
- Must-solve 150The 150 questions to solve first, by topic
- Focus areasForms, accessibility, performance and more
- Study plansDay-by-day plans, from 1 week to 3 months
- Mock interviewA timed round, follow-ups and a score
- QuizMultiple choice, scored, every answer explained
- Predict the outputWhat does this code print? Event loop, this, closures
- TypeScript challengesType puzzles checked by the real TypeScript compiler
- DSA for frontendTrees, intervals, sliding windows and DP in JavaScript
- Question of the dayOne question a day, free for everyone
Learn
Understand what interviewers probe.
- For college studentsNewProjects, internships and placements, from any college
- System design courseA free RADIO course, practice rounds and a whiteboard
- React deep divesConcurrent rendering, transitions, Server Components
- Interview answersClosures, hooks, CSS, CORS: answered with examples
- Company guidesGoogle, Amazon, Flipkart, Swiggy and more
- Interview experiencesReal rounds and questions, shared by candidates
- Frontend roadmapNewBeginner to FAANG, as a tree, with free links
- AI roadmapNewLLMs, streaming UIs, tools and RAG
- Full stack roadmapNewFrontend to backend to full stack
- Interview roadmapWhat to study, week by week
- Open sourceNewProjects and first issues to contribute to
- BlogIn-depth articles on every interview topic
Getting the right output is the easy part. The follow-up questions are where senior offers are won.
The UIRound editor
A real editor.
Right in your browser.
Write JavaScript or React, run it instantly, and check it against an interviewer's test suite.
1import { useState } from "react";23export default function App() {4 const [count, setCount] = useState(0);5 return (6 <button onClick={() => setCount(count + 1)}>7 Clicked {count} times8 </button>9 );10}
Runs instantly.
Your code runs in your browser the moment you press Run. Nothing to install, nothing to wait for.
Tests like an interviewer.
One click checks every edge case an interviewer would try, with a clear reason for each failure.
Live React preview.
Write a component and watch it render beside your code. Click it, break it, fix it.
Practise the way interviews actually go.
Three steps, on every question.
Step 1
Read the problem. Start the clock.
Every question is a real interview task with a time budget for its level, from 15 minutes on easy to an hour on hard.
Implement mapLimit() with at most N tasks running at once.
- Results must keep input order.
- Reject as soon as one task fails.
- Never run more than limit tasks.
Step 2
Solve it. Then run the tests.
Write your solution in the editor and check it against the edge cases an interviewer would try, right in your browser.
async function mapLimit(items, limit, fn) {
const results = [];
let next = 0;
const worker = async () => {
while (next < items.length) {
const i = next++;
results[i] = await fn(items[i]);
}
};
await Promise.all(Array.from({ length: limit }, worker));
return results;
}All 3 tests passed
- keeps input order
- never runs more than limit tasks
- rejects on the first failure
Step 3
Face the follow-ups.
Answer the questions an interviewer asks next out loud, then reveal the model answer. This is where senior offers are decided.
Interviewer
What happens when one task rejects?
Promise.all rejects at once, but workers already running keep going. Track a failed flag so no new task starts.
- Can a caller cancel halfway?
- What about 100,000 items?
Answer out loud first. Then reveal.
Implement mapLimit() with at most N tasks running at once.
- Results must keep input order.
- Reject as soon as one task fails.
- Never run more than limit tasks.
Everything you need.
Nothing you don't.
Follow-ups with model answers.
Try each one out loud, then reveal how a senior engineer would answer it.
- What happens when one task rejects?Reveal
- Can a caller cancel halfway through?
- How do you avoid starving low priority work?
FAANG-level questions, curated.
From warm-ups to senior system design, each picked by hand.
Revise before you forget.
Solved questions come back after growing gaps, so they are still fresh in interview week.
- Day 1
- Day 3
- Day 7
- Day 14
- Day 30
Track every solve.
Mark questions solved, bookmark the ones to revise, and pick up where you left off.
Free to start.
Four full questions and answers in every track, with the editor and tests included.
Start with the free answersBuilt for the keyboard.
Next, previous and search, without the mouse.
20 tracks. From polyfills to system design.
Every question runs real tests in your browser. Point at a track to see one, and the first four in each are free.
1234567- calls once after the last call
- passes the latest arguments
- keeps this
writing…
Medium, 153 questions. debounce, throttle, curry, deep clone, LRU — the utility belt of senior rounds.
Open this trackFree sample answer
#59 Implement useInterval() without stale closures
Problem
This counter looks right but gets stuck at 1:
function Counter() {
const [count, setCount] = useState(0);
useEffect(() => {
const id = setInterval(() => setCount(count + 1), 1000);
return () => clearInterval(id);
}, []); // the callback only ever sees count = 0
return <h1>{count}</h1>;
}Implement useInterval(callback, delay) so that:
callbackruns everydelayms and always sees the latest props and state (no stale closure);- passing a new callback on every render does not restart the interval;
delay === nullpauses the interval, and changingdelayrestarts it with the new delay;- the interval is cleared when the component unmounts.
What engineers say.
Engineers at Google, Amazon, Microsoft and more, on preparing with UIRound.
Pay once. Nothing renews.
Pick the time you need. No subscription, no auto-pay, less than the cost of one mock interview.
Sprint
For a last-minute revision.
₹149
for 7 days
About ₹21 a day. One payment. It does not renew.
Monthly
For one interview round.
₹499
for 30 days
About ₹17 a day. One payment. It does not renew.
3 Months
One full preparation cycle, start to offer.
₹999₹899
for 90 days
New member offer: 10% off until 1 January
About ₹10 a day. One payment. It does not renew.
1 Year
Best valueFor a whole year of interviews, at the lowest price per day.
₹1,799₹1,999for 1 year
New member offer: 10% off until 1 January
About ₹5 a day: 70% less than 12 Monthly passes. One payment; it does not renew.
- Every question, fully unlocked
- 10,580 tests to check your code in the browser
- Step-by-step explanations and tested solutions
- 5,083 follow-up questions with answers
- New questions, added while your pass lasts
- Card worldwide, or UPI in India, through Razorpay
- Access unlocks the moment payment succeeds
- One payment. Nothing renews.
- Receipts for your company's learning budget
Student? Every pass is 10% off.Sign in with your college email (ending in .ac.in or .edu) and the student price is applied for you.
Compare plans
Questions? Answers.
What is UIRound?
UIRound (uiround.com) is a frontend interview practice website. You solve JavaScript, React, TypeScript, CSS, machine-coding and frontend system design questions in a browser editor, check your code against real tests, then read a step-by-step answer and the follow-up questions interviewers ask. It covers every level, from students and SDE-1 to senior, staff and FAANG loops, and four questions in every track are free.
Are the passes subscriptions?
No. Every pass (7 days, 30 days, 90 days and 1 year) is a one-time payment. Nothing renews; buy again whenever you want more time, and the new days are added to what you have left.
Which pass should I pick?
3 Months if you are preparing for interviews over the next few weeks: it covers a full preparation cycle and costs the least per month. Sprint (7 days) for a last-minute revision before one interview, Monthly (30 days) for one interview round, and 1 Year if you want to practise all year. Every pass unlocks everything, including questions added while it lasts.
What happens when my pass ends?
Your progress, bookmarks, notes and revision schedule stay. The full answers and tests lock again until you buy another pass, and the free questions stay free. Buying a pass while one is active adds its days to the end.
How do I pay?
Through Razorpay: by card from any country, and also by UPI, net banking or wallets in India.
Can I try it first?
Yes. Four questions in every track are fully free, with tests and answers. Every other question shows its title, topic and level; the full problem, hints, editor, tests, answer and follow-ups unlock with Pro.
Can I get a refund?
No. All purchases are final, so start with the free questions to see exactly what you get. If a payment fails or you are charged twice, the extra charge is returned to you.