Course 201 Class Thirteen “Local Storage”
Questions
- Why would a developer use local storage for a web application?
Because HTTP on the web is stateless and doesn’t store data it resets. Local storgae alllows you to store data in the browser and it does not expire.
- What information should not be stored in local storage?
Never store sensitive information in local storage. So no passwords or personal data.
- Local storage can store what type of data? How would you convert it to that type before storing?
You can only store string data in local storgae and work around for that is using the native JSON.stringfy() and JSON.parse