Facebook Pixel

What should you prioritize in the Swiggy food ordering app interview?

Functionality first (cart, menu, filters, search). Then edge cases (empty cart, no results, quantity 0). Then CSS (grid, flexbox, colors). Do not spend too much time on CSS early. A working app with basic CSS scores higher than a beautiful app that does not work.

Verify This Answer

Cross-check this information using these trusted sources:

More FAQs in Food Ordering App: Swiggy Interview Experience

Build a food ordering app with a menu, search, filters (veg/non-veg, category, price), cart (add, remove, quantity), cart total, and checkout. 90 minutes. They evaluate functionality, code quality, edge cases, UI, and approach.

How would you scale for 10,000 items (virtualization, pagination, server-side search)? How would you persist the cart (localStorage, backend)? How would you handle concurrent updates (optimistic UI)? How would you add coupons (discount code on total)?

The cart logic. Managing add, remove, quantity change, and total calculation. Use an object mapping item ID to quantity. Handle quantity 0 (remove from cart). Calculate total by summing price * qty for each item.

Still have questions?

Browse all our FAQs or reach out to our support team

Want to upskill yourself?

Our courses are taking a Coffee break, but your curiosity shouldn't. Stay engaged with namastedev linkedin, youtube, discord and other resources while you wait.

0
Please Login.
Please Login.
Please Login.
Please Login.
Please Login.
Please Login.
Please Login.
Please Login.
Please Login.
Please Login.
Please Login.
Please Login.