function onloadAmountCart() {
        let productQuantity = localStorage.getItem("cartQuantity");
        if (productQuantity) {
            document.querySelector("#cart span").textContent = productQuantity;
        }
    }
//Function to load products from localStorage
Function to load products from localStorage
Function to load products from localStorage
function onloadAmountCart() {
        let productQuantity = localStorage.getItem("cartQuantity");
        if (productQuantity) {
            document.querySelector("#cart span").textContent = productQuantity;
        }
    }
function onloadAmountCart ( ) { let productQuantity = localStorage . getItem ( "cartQuantity" ) ; if ( productQuantity ) { document . querySelector ( "#cart span" ) . textContent = productQuantity ; } }
Function to load products from localStorage
Function to load products from localStorage