Mockd

Demo case file · Technical

Travel booking platform

Frontend Engineer

Technology Technical Medium 60 min

This is a demo case file: a realistic example written from commonly known interview formats, not a real candidate's interview experience.

Questions asked

  1. Build an autocomplete search box in plain JavaScript that fetches suggestions from an API as the user types.
  2. Responses sometimes arrive out of order and show results for an older query. How do you prevent that?
  3. Make the component fully usable with a keyboard and a screen reader.

What to expect

Coded in a real browser, no frameworks allowed. They expected debouncing, cancelling stale requests, and caching repeated queries. Accessibility was not optional — they asked which ARIA roles I'd use and tested arrow keys, Enter and Escape themselves.

Practice this exact interview.

Mockd plays the interviewer live, using these questions and notes, then grades your answers.

Start a practice session Browse all case files