Best way to use LocalStorage in Javascript | Sololearn: Learn to code for FREE!
Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis
+ 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 Resposta
+ 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