Retrieving data from the Web Storage API is just as easy as storing it. The only thing you need to be careful of is that the context of what you access will be retrieved as a string, so if you are expecting a number or object type, some post-retrieval conversion is required.
There are different ways to retrieve data stored in the Web Storage API:
string = localStorage.getItem(key); string = sessionStorage.getItem(key);
This will return null