**You can evaluate a situation by comaring one value in the script to what you expect it might be. The result will be a boolean : true or false. **
The Comparison operators usually return single values of true or fales. The Logical operators allow you to compare the resultsof more than one Comparison operator.
Loops check a condition,if it return true . a code block will run. Then the condition will be checked agian and if it still returns true.the code block will run agian.it repeats until the condition returns false.
There are three common types of loops :
- For
- While
- Do While
A for loop uses a counter as a condition. This instructs the code to run a specified number of times. Here you can see the condition is made up of three statements:
- Initilaization : var i = 0 ;
- Condition : i < 10 ;
- Update : i++



