title: Get a localStorage item value and set it as a variable
body: <p>I'm trying to get the value of a <code>localStorage</code> item (<code>theme</code>) and set it as a variable</p>
  <pre class="lang-js prettyprint-override"><code>var theme = localStorage.getItem('theme');
  </code></pre>
  <p>The <code>theme</code> item in my browser is <code>night</code> but the <code>theme</code> variable is still <code>dark</code> from one of my previus tests</p>