Community Question Bundle

The Airbnb System-Fit Questions I Prepped

Free set: four coding questions I rehearsed for a marketplace company's frontend loop. Every prompt is grounded in a real booking-domain object, because the interviewers grade modeling choices as much as code.

The Airbnb System-Fit Questions I Prepped

Free set: four coding questions I rehearsed for a marketplace company's frontend loop. Every prompt is grounded in a real booking-domain object, because the interviewers grade modeling choices as much as code.

Question Bundle
JavaScript
4 questions
interview-prep
frontend
airbnb
mianair

By @mianair

January 27, 2026

·

Updated May 18, 2026

647 views

9

4.3 (12)

Write a deepClone(value) that handles plain objects, arrays, Date, RegExp, and circular references. The interviewer's twist: JSON.parse(JSON.stringify(x)) is not allowed. Why?

Sample run

Sample run with cycles and special types:

JavaScript
const a = { d: new Date('2026-01-01'), tag: /foo/i };
a.self = a;
const b = deepClone(a);
// b.d !== a.d but b.d.getTime() === a.d.getTime()
// b.tag !== a.tag but b.tag.source === 'foo' and b.tag.flags === 'i'
// b.self === b (self-reference preserved via WeakMap, no infinite recursion)
deepClone(42); // 42, primitives returned as-is