title: Count Up window.localStorage.getItem via Javascript
body: <p>I try to could a number in localStorage but the ++ doesnt do it any other way?</p>
  
  <pre><code>window.localStorage.setItem('run','++')
  </code></pre>
  
  <p>This is the full code</p>
  
  <pre><code>&lt;script type="text/javascript"&gt;
      if(window.localStorage.getItem('run')==null){
  
          window.localStorage.setItem('run','1')
      }
      else if(window.localStorage.getItem('run')==1){
  
          window.localStorage.setItem('run','++')
          window.location = "index_aerosoft.html";
      }
      else if(window.localStorage.getItem('run')==25){
  
          alert("hey 25times");
          window.localStorage.setItem('run','null')
      };
  &lt;/script&gt;
  </code></pre>