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

Michael Zhou zhoumotongxue008 at gmail.com
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. 
Thanks!


More information about the es-discuss mailing list