Local Storage
- origin specific, each web application has it's own storage
- data persists after page renders
- key-value database
- values are stored as DOMstrings
- can not be saved as javascript objects
- need to use
JSON.stringify()
before saving value to storagewindow.localStorage.setItem('loggedNoteappUser', JSON.stringify(user)) JSON.parse()
to read from storage
Source -> Local storage