O'Reilly logo

Isomorphic Go by Kamesh Balasubramanian

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Running the local storage demo

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:

Figure 3.21: The Local Storage Inspector showing a newly added key-value pair

Try refreshing the web page, and after that, try restarting the web browser and returning to the web page. Notice that in these ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required