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