xAI frontend interviews asked for a stopwatch, a flag drawn in CSS, and a JavaScript object-key output question. Here is what members report.
This page is built from 2 xAI interview reports that FrontendLead members posted between October 2025 and December 2025. That is a small sample, so read it as what these candidates saw, not as xAI’s whole process. Stages nobody has written about are left out instead of guessed. The exact prompts are in the members-only section below.
The second round mixed three kinds of question: a small React build, pure CSS, and a JavaScript quirk.
By Shivam Bhalla · Updated
01xAI frontend interview at a glance
- Stages reported
- Technical phone and Round 2
- Questions reported
- Stopwatch with start, pause, and reset, Draw a flag in CSS, and Objects as object keys
- Evidence
- 2 member reports
02xAI interview stages members reported
The order and number of rounds can differ by team and level, so confirm your loop with your recruiter.
- 1
Technical phone
Frontend engineer, 2025Describe the most complex project you have worked on.
- 2
Round 2
Senior, 5 years, 2025Three questions.
03Questions xAI candidates were asked
Premium
These prompts come from member reports.
Stopwatch with start, pause, and reset
Senior, round 2Implement a stopwatch timer with start, pause, and reset.
Practice: Lap Split Stopwatch and Resumable Ticker.
Draw a flag in CSS
Senior, round 2Implement the flag of Iceland in CSS. Layered crosses can be built with gradients, grid, or pseudo-elements.
Practice: Masonry Grid.
Objects as object keys
Senior, round 2Two different objects are used as keys on a plain object, each assigned a number, and you are asked what gets logged. Object keys are converted to strings, so both become the same key and the second assignment overwrites the first.
Practice: Closures.
04How to prepare for the xAI frontend interview
Start with the questions members reported, then widen out.
| Step | Focus | Practice |
|---|---|---|
| 1 | Stopwatch with start, pause, and reset | Lap Split Stopwatch, Resumable Ticker |
| 2 | Draw a flag in CSS | Masonry Grid |
| 3 | Objects as object keys | Closures |
If you have interviewed at xAI, add your report. Each new report makes this page more specific.
05xAI frontend interview FAQ
What does xAI ask in frontend interviews?
Members reported: stopwatch with start, pause, and reset, draw a flag in CSS, and objects as object keys.
Does xAI ask system design?
No member has reported a system design round yet.
How many xAI interview reports is this based on?
2 member reports. Treat it as a partial picture and confirm details with your recruiter.
