Data that should not outlive the tab belongs in sessionStorage, not localStorage.
Acceptance criteria
- 1.#out should show found it.
Data that should not outlive the tab belongs in sessionStorage, not localStorage.
sessionStorage.removeItem("currentStep"); localStorage.setItem("currentStep", "2"); document.querySelector('#out').textContent = sessionStorage.getItem("currentStep") === null ? "missing" : "found it";
Output ready when you are
Press Run to render your code, or Submit to validate your solution.