Understand localStorage
Learn how to use localStorage to access local memory.
We'll cover the following...
What’s local storage?
The localStorage
web API allows us to save and retrieve data from the local storage. The data remains in the browser’s storage, even if the browser is closed.
Store the item
We can store the item in the localStorage
using the following syntax:
localStorage.setItem('key','Value')
Example:
...