DEV Community

loading...

Discussion on: What is localStorage?

Collapse
3in0 profile image
3in0

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