In ES6, do for loops with a let/const initializer create a separate scope?

Michael Zhou zhoumotongxue008 at
Thu Jun 12 12:50:39 PDT 2014

In other words, is
for (let i = 0; i < 10; i++) {
   let i;

legal? I feel it is, but I'm not sure if the specs has made that clear. 

More information about the es-discuss mailing list