function clearCompletedItems() {
  list = list.filter((list) => list.complete === false);

  localStorage.setItem(LOCAL_STORAGE_SHOPPINGLIST_KEY, JSON.stringify(list));
  completedItemsModal.style.display = "none";
  renderShoppingList();
  renderListCount();
}
// define function to clear completed sli from list, save to local storage

define function to clear completed sli from list, save to local storage
define function to clear completed sli from list save to local storage
function clearCompletedItems() {
  list = list.filter((list) => list.complete === false);
  localStorage.setItem(LOCAL_STORAGE_SHOPPINGLIST_KEY, JSON.stringify(list));
  completedItemsModal.style.display = "none";
  renderShoppingList();
  renderListCount();
}
function clearCompletedItems ( ) { list = list . filter ( ( list ) => list . complete === false ) ; localStorage . setItem ( LOCAL_STORAGE_SHOPPINGLIST_KEY , JSON . stringify ( list ) ) ; completedItemsModal . style . display = "none" ; renderShoppingList ( ) ; renderListCount ( ) ; }
define function to clear completed sli from list, save to local storage
define function to clear completed sli from list save to local storage