the result will be a boolean: true or false
eight operators to comparing:
> , greater than< , less than>= , greater than or equal to<= , less than or equal toA logical operator is a symbol or word used to connect two or more expressions such that the value of the compound expression produced depends only on that of the original expressions and on the meaning of the operator. Common logical operators include AND, OR, and NOT.
the logical AND ( && ) operator (logical conjunction) for a set of operands is true if and only if all of its operands are true.
the logical OR operator ( || ) returns the boolean value true if either or both operands is true and returns false otherwise
the logical NOT (!) operator (logical complement, negation) takes truth to falsity and vice versa.

a loop is a programming structure that repeats a sequence of instructions until a specific condition is met.
javaScript For Loop ยท JavaScript Loops. Loops are handy, if you want to run the same code over and over again, each time with a different value.
var i;
for (i = 0; i < cars.length; i++) {
text += cars[i] + "<br>";
}
the While Loop. The while loop loops through a block of code as long as a specified condition is true.
while (i < 10) {
text += "The number is " + i;
i++;
}