Week8day2 BrowserStorage

JSON syntax, structure, rules {"name":"John"}

Application state and why it is needed Data persistence using local storage localStorage.setItem("lastname", "Smith"); localStorage.getItem("lastname");

Execute

Convert objects to and from JSON with JSON.stringify() and JSON.parse(). Save application state directly into local storage through localStorage.setItem(). Retrieve application state from local storage through localStorage.getItem().