Why do we need a condition in a while
loop?
- So we can decide when to run or skip its code block
- So we define what code the loop should repeat
- So we can display code in the console
- We don't need a condition in a
while
loop So we can decide when to run or skip its code block.