Airbnb Interview Question

Given a star widget embedded in a form write the code to select the stars and submit the correct value through a normal form action. Make reusable for multiple star widgets.

Interview Answers

Anonymous

Sep 23, 2016

Since I don't have the actual interview code an approximation of my solution was: HTML: <div> <div></div> <div></div> <div></div> </div> CSS: .star { height: 20px; width: 20px; background: #FFCC11; display: inline-block; } input:checked ~ label .star { background: #ccc; } input[type="radio"] { display: none; }

1

Anonymous

Dec 14, 2020

The key in these questions is to cover the fundamentals, and be ready for the back-and-forth with the interviewer. Might be worth doing a mock interview with one of the AirBnB or ex-AirBnB Front End Engineer experts on Prepfully? They give real-world practice and guidance, which is pretty helpful. prepfully.com/practice-interviews