It's important to remember why we use JSON and localStorage -- formatting and saving data on the user's computer, via the WebStorage API.
localStorage
gives us access to a storage object in the browser (go ahead and try calling localStorage
in the console. We get an object back!)
This object gives us access to a few methods, such as:
localStorage.setItem([key],[value])
=>undefined
localStorage.getItem([key])
=>"[value]"
(as a string)