Class Thirteen Notes (201)
Local Storage
Local Storage and How to Use It on Websites
- A developer would use local storage for a web app to store the most recent state of the app without forcing the user to sign up
- Private info and sensitive should not be stored in local storage
- The data is stored as strings in different keys. The methods can be used to workout the issue are
JSON.stringify()
and JSON.parse()
Things I want to know more about
- How can local storage be harmful if it’s suppsed to be temporary?
Back to main page
References