I'm trying to create simple shopping cart object array and save it to local storage. How would I write the script out to save this items into an object array.
Lets say the person filled there shopping car with a [Name: "pencil" Price 1.00, Name: "notebook" Price 1.50, and Name: "backpack" Price 25.00].
How would I write the javascript that so those values would be saved in local storage as items[0], items[1], items[2]?
Eventually I'm going to save items[1,2,3] into a single array cell in a database. The array size will be dynamic it might be more then 3 items.
Best regards,
Sebastian