Premium

Listing Booking Widget: Dates, Guests and Total Price

By FrontendAtlas Editorial · Updated Nov 6, 2026

Challenge summary

Build a listing booking widget that prices a stay from two dates and a guest count, greys out Book now on booked dates and confirms in an accessible dialog. The review signal is one derived quote that every line and the button read.

What you'll practice

  • Derive the nights, the price lines and the total from one quote.
  • Count nights in UTC days and check booked dates as half-open ranges.
  • Cap adults and children together and price extra guests per night.
  • Confirm in a dialog that takes focus, closes on Escape and returns focus.

What Premium unlocks

Premium unlocks the runnable workspace, behavioral checks, implementation walkthrough, and edge-case discussion. It also runs as an Interview Pressure Mode, in rounds that add requirements the way an interviewer does.

Free related practice

Public interview reports: PracHub (August 2025) · Airbnb frontend interview questions

Upgrade to FrontendAtlas Premium to unlock this challenge. Already upgraded? Sign in to continue.

Premium is $24 a month or $99 a year, less in many countries.