LocalStorage is a read-only property of the window interface that allows us to access the Storage for the Document’ origin (aka the browser). It let us save key-value pairs on the user browser. This was introduced on HTML 5 and everything it’s stored as a String, but I will show you how to save JSON objects.
Table of contents
What is the localStorage?localStorage vs sessionStorageHow to write on localStorageHow to read localStorage dataHow to find all localStorage keysHow to remove dataDrawbacks of localStorage3 Comments
Sort: