Closed politologu closed 6 years ago
This already exists: https://codetogo.io/how-to-loop-through-array-in-javascript/
Indeed @itamark I've rarely used this for loop as I mostly use .forEach
or for .. of
I was thinking though it may be useful to use this for
loop when you're counting, or when you're counting and skipping some numbers, for example from 1 to 10 skipping 2 numbers
so when I add this, I'll reformulate it in order to avoid collision with how to loop through array in javascript
@jadjoubran in general - you should open-source this. Suggesting new entries is not what I had in mind when I clicked "Contribute". You can still be editor and merge things or not, but it'd be great if people could contribute actual new examples.
@itamark is not same, my suggestion is totally for beginner :)
Hi my friends, I am back here.
Thanks Qazim Rama