Skip to content

Latest commit

 

History

History
76 lines (46 loc) · 2.49 KB

ShoppingCart.md

File metadata and controls

76 lines (46 loc) · 2.49 KB

1. Shopping Cart

Your task is to implement a basic shopping cart for a website, following these basic rules:

Shopping

  • Store the cart on localStorage
  • The cart should only know about item IDs and their quantity
  • The cart should notify when it has been updated
  • UI could be like flipkart cart, the functionality you should implement is add/remove items, increment/decrement item count and update localStorage on any change
  • The UI should be clean
  • Focus on the cart, other parts are just helpers
  • Dummy data should be used for the cart items