I'm new to this so please be gentle.
I an on a course where we are being asked to store items in localStorage, which I have done. Now further through the course we need to take the data in local storage and upload it to Firebase realtime db, while also emailing out the response.
The trouble is, I know what I WANT to do but can't describe what i want to do, nor actually figure it out.
if (localStorage.getItem("items")) {
products = JSON.parse(localStorage.getItem("items"));
So I know this works and will get the items from localStorage, but how on earth would I turn them back into an object in order to then give constants to the name: price: quantity: values?
I think from that part I can figure out how to pass those to firebase and the postmark API's