reading-notes

Reading

Local Storage and How To Use It On Websites

  1. Why would a developer use local storage for a web application?
    • local storage allows you to keep an up to date version of what you are working on. HTTP is a stateless and reverts an application to it original state when it is closed.
  2. What information should not be stored in local storage?
    • user information when cookies are turned off
  3. Local storage can store what type of data? How would you convert it to that type before storing?
    • string
    • JSON.stringify()