You can access the local storage demo at http://localhost:8080/localstorage-demo.
Let's add a new key-value pair to local storage. In the Key input text field, let's add the "foo" key, and in the Value input text field, let's add the "bar" value. Click on the Save button to add the new key-value pair to local storage.
Figure 3.21 shows the newly created key-value pair appear, after clicking on the Save button:
Try refreshing the web page, and after that, try restarting the web browser and returning to the web page. Notice that in these ...