As the capabilities of the browsers increase, local storage has remained a solid feature for storing non-pertinent information. Data that doesn’t need to be stored on a server tends to be saved into local storage.
Well, this is made relatively simple by the structure of local storage. LocalStorage is essentially just an object. So let’s say we set 3 properties of our local storage:
localStorage.setItem(1, "Tommy Vercetti"); localStorage.setItem(2, "Niko Bellic"); localStorage.setItem(3, "Carl Johnson");
If we examine this data in our dev tools we can the structure of the local storage: