While I really like the ability to control scope in ES6 and therefore would probably prefer to use let, for most loops, I would be using forEach or one of its brethren methods in any case, so using let instead would not improve legibility.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Thank you Alex, I was thinking about setTimeout callback! For other functions, is it better to create a separate callback function?
I only added it for the sake of completeness.
While I really like the ability to control scope in ES6 and therefore would probably prefer to use
let
, for most loops, I would be usingforEach
or one of its brethren methods in any case, so usinglet
instead would not improve legibility.