Skip to content

Latest commit

 

History

History
28 lines (15 loc) · 997 Bytes

class13.md

File metadata and controls

28 lines (15 loc) · 997 Bytes

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