Javascript- Web Storage
localStorage and sessionStorage are global Storage objects. localStorage is persistent while sessionStorage is temporary.
All values are stored as strings which may neccessitate conversion.
You can use the JSON.stringify and JSON.parse functions to store objects.
Returns the key for the item stored at the given index.