tablica stosu w Localstorage

const dataProduct = JSON.parse(localStorage.getItem("dataProduct")) || [];
    dataProduct.push(dataProductObj);
    localStorage.setItem("dataProduct", JSON.stringify(dataProduct));
Stern