assets/js/catalog.js
// TODO: As you add items into the cart, show them (item & quantity) in the cart preview div
As you add items into the cart, show them (item & quantity) in the cart preview div
As you add items into the cart show them ( item & quantity ) in the cart preview div
function updateCartPreview() {
}
function updateCartPreview ( ) { }
TODO: As you add items into the cart, show them (item & quantity) in the cart preview div
TODO : As you add items into the cart show them ( item & quantity ) in the cart preview div
// TODO: Get the item and quantity from the form // TODO: Add a new element to the cartContents div with that information) // var item = document.getElementById('items').value; //   var li = document.createElement('li'); //   li.textContent = `${item}: ${txtQuantity.value}`; //   ul.appendChild(li);