+ 2
Best way to use LocalStorage in Javascript
just wonder the best way to use Localstorage function in javascript
1 Answer
+ 2
đ„ To find Whether a use has visited your website for first time.
đ„ To store their name,email,number etc.
đ„ To store form data.
đ„ To store some variables for a long time.
đ„ It can store json data
đ„ I have also used this as a database
đ„ But its storage is about only 5mb to 10mb.
đ„ To store data even if the person left out the browser.
Edit: you should not store personal data in localstorage or any PII for privacy reasons