‘FOR’ loops are old news
We all have been using ‘for’ loop since we started learning how to code isn’t it? But, what if I told you there was an alternative to the venerable ‘for’ loop?
No matter which programming language it is — be it is Java, C, Python, JavaScript, etc. — we all learnt ‘for’ loop. However, we must always remember that when we code, our main goal is to write as less of a complex code as possible.