title: LocalStorage - check if key exists
body: <p>What's the difference between:</p>
  
  <pre><code>if (localStorage.regionCode) { }
  </code></pre>
  
  <p>AND</p>
  
  <pre><code>if (localStorage.getItem('regionCode') !== null) { }
  </code></pre>