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

Building a local storage inspector

With the information presented in the previous section on how to utilize the localStorage object, let's go ahead and build a local storage inspector. The local storage inspector, will allow us to perform the following operations:

  • Viewing all the key-value pairs that are currently stored in local storage
  • Adding a new key-value pair to local storage
  • Clearing all key-value pairs in local storage

Figure 3.20 depicts the user interface for the local storage inspector:

Figure 3.20: The Local Storage Demo user interface

The box directly under the LocalStorage Demo title is a div container that is responsible for ...

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