function handleSubmit(event) {
  event.preventDefault();
  console.log(event.target.items.value);
  // TODO: Prevent the page from reloading

  // Do all the things ...
  addSelectedItemToCart(event);
  cart.saveToLocalStorage();
  updateCounter();
  updateCartPreview();
document.getElementById('catalog').reset();

}
// so that it shows the # of items in the cart and a quick preview of the cart itself.
so that it shows the # of items in the cart and a quick preview of the cart itself.
so that it shows the # of items in the cart and a quick preview of the cart itself .
function handleSubmit(event) {
  event.preventDefault();
  console.log(event.target.items.value);
  addSelectedItemToCart(event);
  cart.saveToLocalStorage();
  updateCounter();
  updateCartPreview();
document.getElementById('catalog').reset();
}
function handleSubmit ( event ) { event . preventDefault ( ) ; console . log ( event . target . items . value ) ; addSelectedItemToCart ( event ) ; cart . saveToLocalStorage ( ) ; updateCounter ( ) ; updateCartPreview ( ) ; document . getElementById ( 'catalog' ) . reset ( ) ; }
so that it shows the # of items in the cart and a quick preview of the cart itself.
so that it shows the # of items in the cart and a quick preview of the cart itself .
// TODO: Prevent the page from reloading // Do all the things ...