Local Storage
Browser key-value storage that remains after the page and browser are closed.
What is Local Storage in JavaScript?
Local Storage — Browser key-value storage that remains after the page and browser are closed.
localStorage.setItem("theme", "dark");
const theme = localStorage.getItem("theme");
Level: Freelancer · More JavaScript terms at this level
Updated