loading...

Discussion on: How to use Local Storage in JavaScript?

Collapse
v0idifier profile image
void

you can just do

localStorage.xyz = 420
delete localStorage.xyz

feels more natural.

Collapse
bgopikrishna profile image
Gopi Krishna Author

I know that, but I don't think it is a good practice to follow.