/Shopping-cart

Add and remove items to your shopping cart made with JavaScript

Primary LanguageHTMLMIT LicenseMIT

🛒 Shopping cart

Add products or remove them to cart

Table of contents

Overview

The challenge

  • Identify the course selected by the user

  • Create an object with the necessary course information and show it at the cart DOM

  • Check if items already exists in cart and update its quantity if necessary

  • Remove an specific item from cart

  • Empty cart

Wireframes

Links

My process

Built with

  • HTML5 (structure received already finished)
  • Skeleton (template received already finished)
  • JavaScript

What I learned

Work with arrays and its methods as some, forEach or map. Modify DOM through user interactions

Author

🖤 Support

Sharing is caring, contributions and suggestions are always welcome.