reading-notes

Class 13 Reading Assignment

Local Storage

Local Storage and How to Use It On Websites

  1. Why would a developer use local storage for a web application?

the state won’t be reset every time you open an application

  1. What Information should not be stored in local storage?

objects that have not been converted to strings

  1. Local storage can store what type of data? How would you convert it to

that type before storing? strings. use JSON.stringify() and JSON.parse() methods to convert.

Bookmark/Skim

Diving Into Local Storage

window.localStorage MDN

JSON.stringify MDN

JSON.parse MDN