>", "< To use Session Storage (which is ephemeral and clears out when all tabs are closed) just replace localStorage with sessionStorage. The complete guide to using localStorage in JavaScript apps - LogRocket BloglocalStorage.setItem("<<key name>>", "<<value>>");
const value = localStorage.getItem("<<key name>>");