May I ask why you choose to merely present the quite deprecated for(let …;…;…) in a es6 context?
If your article target very es6 beginners, then for(const … of …) is way better/easier than the old loop style.
And if you stick with the current one, may you present why it is useful, what features it has. In 2018, in a es6 context, I think you should justify the use of if(let …;…;…).
Also, you could loose the brackets in single line statement;
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.
May I ask why you choose to merely present the quite deprecated
for(let …;…;…)
in aes6
context?If your article target very
es6
beginners, thenfor(const … of …)
is way better/easier than the old loop style.And if you stick with the current one, may you present why it is useful, what features it has. In 2018, in a es6 context, I think you should justify the use of
if(let …;…;…)
.Also, you could loose the brackets in single line statement;