4
I know that the browser localStorage stores data in the key-value format, and that I can recover the Json objects saved there through the key. Now what I need to do is retrieve all the records whose key starts with "Deposit". This is because I want to create a sequence generator, so that each deposit object key has added to it a number.
For example: Deposition01 {... Deposition02 {... Once recovered all the records, I would extract these two final characters to find out which deposit was last inserted, and increment by +1 in the name of the next deposit key...
Also do not know how to do this, but I will try. What I need first is to recover the objects by the name of your keys...
Yeah, I didn’t think I wouldn’t need a loop, I figured I’d have some method to generate it. Another thing I don’t know: the symbol that represents "any character that comes after" in javascript, which in this case is the "$" then... Thanks, it helped a lot.
– Lucas Pletsch