A slight variation of the while loop is the do-while loop, which, unsurprisingly, uses the keywords do and while.

See that? A do-while loop runs at least once, even if the condition is false. That's because the loop runs the piece of code before it checks the condition.

Is that really proper JavaScript?