1.0.0 • Published 2 years ago

technical-test-shopping-cart-mgmt v1.0.0

Weekly downloads
-
License
ISC
Repository
github
Last release
2 years ago

What is this?

Simple shopping cart system build fpr you

Installation

$ npm install technical-test-shopping-cart-mgmt

How to Use

import Cart from 'technical-test-shopping-cart-mgmt'

let keranjang = new Cart()

keranjang.tambahProduk("Pisang Hijau", 2); //=> For Add Product to cart

keranjang.tambahProduk("Semangka Kuning", 3); //=> For Add Product to cart

keranjang.hapusProduk("Semangka Kuning"); //=> For Delete Product to cart

keranjang.tampilkanCart(); //=> For Show Product inside the cart

Or you can

open index.html and use the library in your browser console

Testing

you can test this library using

$ npm install && npm test