theloop
CompaniesRoundsQuestionsSearchProgress
Frontend prep↗
theloop

Interview questions from top companies, mapped to the exact round they show up in. Prep for what you will actually face.

View source

Browse

CompaniesSearchAll rounds

Rounds

Online AssessmentDSA / CodingMachine CodingLow-Level Design

Contribute

Share an interviewReport an issueStar on GitHubFrontend interview prep ↗

The Loop aggregates publicly shared interview experiences and curated commonly-asked questions, each labeled with its source. Not affiliated with any company listed.

CC BY-NC 4.0 · © 2026

← xAI

New Grad / Junior Frontend at xAI

FrontendNew Grad / JuniorNo offer◆ Commonly asked· 2024

A junior frontend loop. Coding-heavy early, design and behavioral later.

The loop · 5 rounds

01

Round 01 · 1 question

Online Assessment

Timed online coding / aptitude screen, usually the first filter.

  • Longest common prefix among strings.
    New Grad / JuniorEasy◆ Commonly asked
    #string
    PracticeLeetCode↗GeeksforGeeks↗
02

Round 02 · 3 questions

DSA / Coding

Data structures & algorithms on a whiteboard or shared editor.

  • Same tree.
    New Grad / JuniorEasy◆ Commonly asked
    #tree
    PracticeLeetCode↗GeeksforGeeks↗
  • Clone a graph.
    New Grad / JuniorMedium◆ Commonly asked
    #graph#dfs
    PracticeLeetCode↗GeeksforGeeks↗
  • Permutations.
    New Grad / JuniorMedium◆ Commonly asked
    #backtracking
    PracticeLeetCode↗GeeksforGeeks↗
03

Round 03 · 2 questions

Machine Coding

Build a working component or service under time pressure.

  • Build a countdown timer with pause and resume.
    New Grad / JuniorEasy◆ Commonly asked
    #react#state
    PracticeGeeksforGeeks↗Search↗
  • Build a tic-tac-toe game with win detection.
    New Grad / JuniorEasy◆ Commonly asked
    #react#state
    PracticeGeeksforGeeks↗Search↗
04

Round 04 · 3 questions

Tech Deep-Dive

Deep questions on your core stack and fundamentals.

  • Explain how CSS-in-JS differs from utility CSS.
    New Grad / JuniorEasy◆ Commonly asked
    #css
    PracticeGeeksforGeeks↗Search↗
  • How does React reconciliation / the diffing algorithm work?
    New Grad / JuniorMedium◆ Commonly asked
    #react#fiber
    PracticeGeeksforGeeks↗Search↗
  • What is tree shaking and when does it fail?
    New Grad / JuniorMedium◆ Commonly asked
    #bundling
    PracticeGeeksforGeeks↗Search↗
05

Round 05 · 2 questions

Behavioral / HR

Values, collaboration, and past-experience (STAR) questions.

  • Describe a time you had to deliver bad news.
    New Grad / Junior◆ Commonly asked
    #communication#star
  • Describe handling a tight deadline with competing priorities.
    New Grad / Junior◆ Commonly asked
    #prioritization#star

Practice each round across every company

  • Online Assessment
  • DSA / Coding
  • Machine Coding
  • Tech Deep-Dive
  • Behavioral / HR

◆ This experience is composed from commonly reported questions for this role and level. Real, individually-shared interviews will be layered in over time.