This repository contains a simple shopping cart functionality implemented in JavaScript. It allows users to add, remove, and update items in their cart, with real-time updates to the total cost.
- Add Items: Users can add products to the cart.
- Remove Items: Users can remove products from the cart.
- Update Quantity: Users can change the quantity of items in the cart.
- Real-time Updates: The total cost is updated in real-time.
-
Clone the repository:
git clone https://github.com/ShawnJeffersonWang/ShoppingCart.git cd ShoppingCart -
Open
index.htmlin a web browser to view and interact with the shopping cart.
- Add an Item: Click the "Add to Cart" button next to a product.
- Remove an Item: Click the "Remove" button next to an item in the cart.
- Update Quantity: Use the "+" and "-" buttons to increase or decrease the quantity of an item in the cart.
This project is licensed under the MIT License. See the LICENSE file for details.