DEV Community

Discussion on: JavaScript Loops

Collapse
 
rolandcsibrei profile image
Roland Csibrei • Edited

Hi Habdul! Thank you for the article, for your effort, BUT, everyone, please check this:

wesbos.com/for-of-es6/

And please, wherever it is possible, stop using var. Guys, it is really time to switch to let and const.

Have a nice day!

Collapse
 
ziizium profile image
Habdul Hazeez

Hi Habdul! Thank you for the article, for your effort, ..

Thank you very much. It means a lot.

And please, wherever it is possible, stop using var. Guys, it is really time to switch to let and const.

This post is aimed at beginners that's why i used var and moreover i was working in the console and multiple declarations with var won't cause an issue but with let and const I'll get lot of errors.

Moreover, i would like anyone learning JavaScript to know where it's been, it's current state and its possible future. If any beginner come across this post and this comments they'll probably research into this topic of not using var and who knows what they might find?

In addition, thank you for the link, i will update the article.