The While Loop part 1

The While Loop



The while loop repeats through a block of code, as long as a specified condition is true.

Syntax:while (condition) {
code block
}

The condition can be any conditional statement that returns true or false.
The result of the condition statement is always:

A numeric value
A string value
A Boolean value (true or false

Comments

Popular posts from this blog

Introducing object part 3

Comparison Operators part 2

Module 2