title: Dynamically create object keys in IE 11 (Expected identifier, string or number, not a comma issue)
body: <p>I'm looking for a solution that creates object keys (is that worded correctly?) dynamically.</p>
  
  <p>Arbitrary example, but this works in chrome and firefox</p>
  
  <pre><code>var weeks = {}
  for(var i = 0; i &lt; 5; i++){
      $.extend(weeks, {["week" + i] : (i * 2)}
  }
  
  //weeks = {"week0":0,"week1":2,"week2":4,"week3":6,"week4":8}
  </code></pre>
  
  <p>Or alternative arbitrary example</p>
  
  <pre><code>var object = {
    ["a" + 50]: "value"
  }
  </code></pre>
  
  <p>The problem seem to be rooted in the <code>[]</code> operator, but  I don't understand how or why this problem only occurs in IE. I have not tested in previous versions to IE11, but I would assume the problem would persist there aswell.</p>
  
  <p>Since the problem seem to be with the <code>[]</code> operator itself, creating my keys in a variable and then shoving that variable into my [] wouldn't do anything to fix the problem, so I seem to be both out of ideas and keywords to google.</p>
  
  <p>So is there a way to dynamically create object keys in IE?</p>