title: HTML5/JavaScript: Store Dynamic Variable Name and Value in localStorage
body: <p>I would like to store the value <code>yes</code> into localStorage with a key of <code>movie1</code> using javascript. However, I want the <code>1</code> part of the key to be dynamic based on whatever <code>movieID</code> is set to.</p>
  
  <p>This is what I currently have, but it isn't working:</p>
  
  <pre><code>movieID = 1;
  
  localStorage.movie + movieID = 'yes';
  </code></pre>
  
  <p>Any thoughts or insight on how I can accomplish this would be greatly appreciated. Thanks!</p>