Tripadvisor·Software Engineer·Take-home Assignment
Apr 2026
Tripadvisor frontend coding round, basically a leveled SPA build in JavaScript. Four incremental stages, each adding complexity on top of the last. Not a whiteboard thing, more of a 'here's a spec, go build it' situation.
- Load blog posts from a local JSON file and render them to the page, showing at least the title and body for each post.
- Add a form to create new blog posts on the client side. The form needs a title field and a multi-line body field. On submit, append the new post to the list without reloading the page, then clear the form.
- Replace the local JSON source with real API calls. Fetch posts from an endpoint, then fetch each post's author in parallel. Also fetch the current logged-in user and display 'You' instead of the author name when it's the current user's post. Handle loading states and errors gracefully, including showing 'Unknown author' if an individual author fetch fails.
- Add a like button to each post. Clicking it should increment the like count immediately in the UI and re-sort the entire list by likes in descending order after each click.
“Straightforward enough.”