Answers for "how to store data using local storage"

2

javascript save data to local storage

// Store
localStorage.lastname = "Smith";
// Retrieve
document.getElementById("result").innerHTML = localStorage.lastname;
// Remove
localStorage.removeItem("lastname");
Posted by: Guest on December-11-2020

Code answers related to "how to store data using local storage"

Code answers related to "Javascript"

Browse Popular Code Answers by Language