Here we use uhh For… While… Uhh… What?

--Originally published at M E R I N O

Sometimes when we’re writing code, we need a loop, but we don’t know exactly what loop to use. To be able to choose between this two functions you need to declare what do you want to do.

If you want to repeat an action over and over again, you use While

If you want to repeat an action a certain amount of times it’s recommended to use For

Here is a blog that can help you if you need more information and a video that explains very clearly how to use this loops.