Answers for "what is a web 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 "Javascript"

Browse Popular Code Answers by Language