Skip to content

Latest commit

 

History

History
15 lines (10 loc) · 354 Bytes

while.md

File metadata and controls

15 lines (10 loc) · 354 Bytes

While

Repeat code while a Boolean condition is true.

while(true) {
}

The while loop has a condition that evaluates to a Boolean value.

The condition is tested before any code runs. Which means that if the condition is false, the code inside the loop doesn't execute.

#examples