title: Adding a high score to local storage
body: <p>I want to add a high score to my game. Right now I have this:</p>
  
  <pre><code>var score = 0;
  var highscore = 0;
  </code></pre>
  
  <p>The score variable works but whenever I get like points so total of 60 points it says the high score is still zero when checking it using <code>console.log(highscore)</code>.</p>
  
  <p>I have this to store the high score:</p>
  
  <pre><code>if (score &gt; localStorage.getItem("highscore")) {
    localStorage.setItem("highscore", score);
  }
  </code></pre>
  
  <p>This does not work properly, but it also doesn't give any errors.</p>