+ 2
Best way to use LocalStorage in Javascript
just wonder the best way to use Localstorage function in javascript
1 Odpowiedź
+ 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