set section storage js code example Example: set localstorage value localStorage.setItem("mytime", Date.now());