localstorage in Javascript

You can save variables value in localstorage.

To save a value in localstorage:

You can get the localstorage by using following syntax:

Remove particular item from localstorage:

Clear all values from localstorage:

 

Share This:

Leave a Reply

Your email address will not be published. Required fields are marked *