Sometimes, you might find while experimenting that you've put a lot of useless key-value pairs inside your storage. You can clear them all at once with the clear method in session storage, as shown in the following snippet:
sessionStorage.clear();console.log(sessionStorage); // blank object {}