title: Const must be initialized error in Microsoft Edge in for...of loop
body: <p>I am using <code>const</code> with the new <code>for of</code> looping structure of JavaScript. It works fine in Chrome but in MS Edge the following code throws error:</p>
  
  <pre><code>for(const a of [1, 2, 3])
      console.log(a);
  </code></pre>
  
  <blockquote>
    <p>Error: Const must be initialized</p>
  </blockquote>
  
  <p>Again, works fine in chrome, edge throws error. I guess it expects const variable to have an initialization value but that's the entire job of the for isn't it?</p>
  
  <p><a href="https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/Statements/for...of" rel="noreferrer">MDN</a> says edge supports the loop so browser support isn't an issue.</p>