title: How do I create a dynamic key to be added to a JavaScript object variable
body: <p>I'm trying something like this, but this example does not work.</p>
  
  <pre><code>jsObj = {};
  
  for (var i = 1; i &lt;= 10; i++) {
      jsObj{'key' + i} = 'example ' + 1;
  }
  </code></pre>
  
  <p>What can I do to make a dynamic key like this?</p>