This
let names = JSON.parse(localStorage.getItem('name'))|| [];
var set = cart_item.childNodes[numPlass].innerHTML;
names.push(set);
localStorage.setItem('name', JSON.stringify(names));
3
solved I’m trying to make a localstorage for a shopping cart