LocalStorage made Simple
Jump to navigation
Jump to search
LocalStorage
localStorage allows you to save string data so it is available next time you run the program.
- An entry can be created by assigning to localStorage.variableName, where variableName is chosen by you.
- Data is retrieved the same way.
- The information in localStorage is lost if the browser cache is cleared on some devices.
- To be certain that you do not lose data, save it into an SQLite database instead.