+ 2

Best way to use LocalStorage in Javascript

just wonder the best way to use Localstorage function in javascript

9th Oct 2020, 7:46 AM
T1mun
T1mun - avatar
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
9th Oct 2020, 8:27 AM
Arnav Kumar [Less/Not Active]
Arnav Kumar [Less/Not Active] - avatar