HTML: localStorage
The localStorage object stores the data with no expiration date. The data will not be deleted when the browser is closed, and will be available the next day, week, or year. Value must be always string
so if we want to store array
we will use JSON.stringify
. To check what is actually in localStore, simply type localStorage
in console
.