function clearAllSli() {
  list = [];
  allItemsModal.style.display = "none";
  localStorage.setItem(LOCAL_STORAGE_SHOPPINGLIST_KEY, JSON.stringify(list));
  renderShoppingList();
  renderListCount();
}
// define function to clear all sli from list, save to local storage

define function to clear all sli from list, save to local storage
define function to clear all sli from list save to local storage
function clearAllSli() {
  list = [];
  allItemsModal.style.display = "none";
  localStorage.setItem(LOCAL_STORAGE_SHOPPINGLIST_KEY, JSON.stringify(list));
  renderShoppingList();
  renderListCount();
}
function clearAllSli ( ) { list = [ ] ; allItemsModal . style . display = "none" ; localStorage . setItem ( LOCAL_STORAGE_SHOPPINGLIST_KEY , JSON . stringify ( list ) ) ; renderShoppingList ( ) ; renderListCount ( ) ; }
define function to clear all sli from list, save to local storage
define function to clear all sli from list save to local storage