var b = localStorage.getItem("myValue"); alert("The Value Received is " + b); var resetValue =0; localStorage.setItem("myValue", resetValue);