We use loops “sequence of instruction that is repeated until a certain condition is reached.” There are three types of loops you might need during coding. There is “for loop,” “while loop,” and “do-while loop.” Loops are common to run codes. It repeats until a condition evaluates to false. While loop executes its statement as long as the condition is true. Lastly, a do-while-loop is a statement repeated until the condition is false, meaning it stops execution and is passed to the do-while statement. I believe we use it for loop when we want to code a specific number of times because it’s always executed by initialization, expression, and increment statements. While loop is when you don’t know the specific number of times it executes as long as the expression is true.
Source:https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Loops_and_iteration#do…while_statement
https://builtin.com/software-engineering-perspectives/for-loop-vs-while-loop
I love your title and picture to make it a bit funnier. You were detailed in explaining for, while, and do-while loops.