Mantenga el valor después de actualizar JavaScript
var someVarName = "value";
localStorage.setItem("someVarKey", someVarName);
Anthony Jr
var someVarName = "value";
localStorage.setItem("someVarKey", someVarName);