0

Local and Session storage.

Can i use Local And Session Storage of my PC? If yes, how can i? Please help me to clear my confusion.

8th Sep 2020, 3:00 AM
Raju
Raju - avatar
2 Réponses
0
Yes, you can use local, session storage on your PC To create storage data: localStorage.setItem("name", "Raju" ) To access the value: localStorage.getItem("name") that return "Raju" That same way for Session storage But session all data delete when you close the tab. LocalStorage stay data's even close browser till, when you delete datas. https://www.w3schools.com/jsref/prop_win_localstorage.asp
8th Sep 2020, 3:25 AM
Vadivelan
0
Vadivelan thanks a lot😊
8th Sep 2020, 4:16 AM
Raju
Raju - avatar