DEV Community

Discussion on: CODING BYTES: PART 5 — Loops

Collapse
 
hsolatges profile image
hsolatges • Edited

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;