Skip to content

The core functionality used for a storefront application, made with Javascript.

Notifications You must be signed in to change notification settings

lexiortiz/shopping-cart

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Shopping Cart Functionality

The core functionality used for a storefront application, made with Javascript.

Accesing the Working Files

I will be doing all of the work in script.js, which is inside the starter/src/assets folder. The starter code file structure looks like this:

Starter Code

├── src
│ ├── assets
│ │ ├── front.js
│ │ ├── script.js <--- Where I will be doing your work
│ │ └── styles.css
│ ├── images
│ │ ├── cherry.jpg
│ │ ├── orange.jpg
│ │ └── strawberry.jpg
│ └── index.html
├── tests
│ └── script.test.js
├── package.json
└── package-lock.json

Project Instructions

Step 1: Review the starter code
Step 2: Build the products
Step 3: Create the cart functionality.

  • addProductToCart()
  • increaseQuantity()
  • decreaseQuantity()
  • removeProductFromCart()

Step 4: Create the Checkout Functionality.

  • cartTotal()
  • pay()

Step 5: REFACTOR!
Step 6: Re-test the user interface
Step 7: [Optional] Add extra features

  • Remove all items from the cart using an emptyCart function.
  • Integrate a currency switcher to switch between USD, EUR, and YEN.
  • Implement currency formatting to accomodate USD, EUR, and YEN.

Built With

License

License

About

The core functionality used for a storefront application, made with Javascript.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published