This table highlights the biggest differences:
Want to join the conversation?
- when will there be a full moon?(6 votes)
- Shouldn't Repetition be while (!condition) in JS(4 votes)
whileloop is run while the provided condition is true. However, if your condition describes the criteria for ending the
while (!condition)would be fitting, like you say.(5 votes)