Skip to content

ShawnJeffersonWang/shopping-cart

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Shopping Cart Project

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.

Features

  • 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.

Setup

  1. Clone the repository:

    git clone https://github.com/ShawnJeffersonWang/ShoppingCart.git
    cd ShoppingCart
  2. Open index.html in a web browser to view and interact with the shopping cart.

Usage

  • 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.

License

This project is licensed under the MIT License. See the LICENSE file for details.

About

A simple shopping cart built with JavaScript.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published