localStorage.setItem("myCat", "Tom");Window: localStorage property / notebook
Window: localStorage property
Runnable notebook: every JavaScript, HTML and CSS example on this page executes in a sandboxed local frame. Nothing leaves the browser.
const cat = localStorage.getItem("myCat");localStorage.removeItem("myCat");localStorage.clear();