function handleSubmit(event) {

  // TODO: Prevent the page from reloading
  event.preventDefault();

  // Do all the things ...
  addSelectedItemToCart();
  saveCartToLocalStorage();
  updateCounter();
  updateCartPreview();

}
// 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();
  addSelectedItemToCart();
  saveCartToLocalStorage();
  updateCounter();
  updateCartPreview();
}
function handleSubmit ( event ) { event . preventDefault ( ) ; addSelectedItemToCart ( ) ; saveCartToLocalStorage ( ) ; updateCounter ( ) ; updateCartPreview ( ) ; }
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 ...