For
Use the for loop when you know the number of iterations
for ( let i = 0; i < 10; i++ ) {
console.log(i);
}
While
Use the while loop when you don't know how many iterations you need to make.
while (incomplete) {
break;
}
Do While
Use the do... while loop to make you iterate at least once no matter the condition
do {
} while (incomplete)
References
https://stackoverflow.com/questions/39969145/while-loops-vs-for-loops-in-javascript