title: Is there a limit to the key length for localStorage?
body: <p>Is there any limit (up to the amount of local storage available) for the key when using localStorage?</p>
  
  <p>i.e. can I do something like:</p>
  
  <pre><code>localStorage.setItem("pretend that this is a 1MB string", "whatever"); 
  </code></pre>