I personally use forEach loops wherever possible. The only time I will need to use a for loop will be if I need to break out of a loop early (e.g. I'm looping through until I find a specific element, and then stopping).
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.
I personally use
forEach
loops wherever possible. The only time I will need to use afor
loop will be if I need to break out of a loop early (e.g. I'm looping through until I find a specific element, and then stopping).