DEV Community


Discussion on: What is localStorage?

3in0 profile image

Yes, that would clear all local storage for everything hosted under the same host/port. I guess if you wanted to just clear the data for one page/game you'd just delete or reset the key/value pairs associated with that page rather than use clear().

Thread Thread
tolentinoel profile image
Ellaine Tolentino Author

Oh yes! this is a good thing to point out! Thank you!

Forem Open with the Forem app