+ 1

how do i get back an array with objects inside of it from the localstorage with javascript?

So I started creating a website that I could sell all the things I have from home.. in sort, an online shop.. i my case is that i have an array which stores so many objects inside of it.. for me to send the data to the localstorage i had stringified the array.. but didn't work so i stringified the object too.. when i used parse to get the data back to another html file it didn't work.. its all in JSON obj mode.. how do I parse the objects again?

30th Oct 2021, 7:58 PM
Xavier Gonçalves
Xavier Gonçalves - avatar
2 Réponses
+ 1
try not to stringify the objects before sending it
30th Oct 2021, 7:59 PM
Xavier Gonçalves
Xavier Gonçalves - avatar