Localstorage is a simple way to save user data on your website, by letting them save it to their browser. All it takes is a little JSON and you'll...
For further actions, you may consider blocking this person and/or reporting abuse
Nice article.
But, be aware of consequences of using localStorage.clear() in any other app.
I'm unfamiliar with that command, does it clear ALL localstorage? or just the localstorage for the page. As far as I know, each webpage has a seperate localstorage.
It will clear your whole storage regardless of how toy stored the data.
Looks like you would be better off using
localStorage.removeItem("keyToRemove")since it would only remove one item