The do while loop works in the same way, except that the code block gets executed at least one time before the condition is checked.

Nice job! We only check the condition of counter being less than 5 at the end, so we're able to increment the number at least once.

Psst: a while loop would see the condition at the beginning and not execute the code. At times, this little difference can be really useful.

Oh noes! A do while loop happens exactly in that order: do, followed by while.