Aussehen
MDN web docs
localStorage.setItem("name", this.name); if (localStorage.getItem("name") !== null) { this.name = localStorage.getItem("name"); }